diff options
| author | Chloe M. <chloe@aptel.org> | 2026-08-20 08:36:36 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@aptel.org> | 2026-08-20 08:36:36 +0000 |
| commit | d739670937e0d411bca437cfa69f47938a7d8d9f (patch) | |
| tree | 7e9cef28aa89bd9ff5f921dccd3807d26d17c211 /boot/arch/amd64/biosboot | |
| parent | a85b624c0698873155668ff91fc8edc39fb1c33e (diff) | |
boot/amd64: Add second stage groundwork
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'boot/arch/amd64/biosboot')
| -rw-r--r-- | boot/arch/amd64/biosboot/Makefile | 16 | ||||
| -rw-r--r-- | boot/arch/amd64/biosboot/biosboot.S | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/boot/arch/amd64/biosboot/Makefile b/boot/arch/amd64/biosboot/Makefile new file mode 100644 index 0000000..c782240 --- /dev/null +++ b/boot/arch/amd64/biosboot/Makefile @@ -0,0 +1,16 @@ +CC = clang +CFLAGS = \ + -ffreestanding \ + -nostdlib \ + -nostdinc \ + -mno-red-zone \ + -mno-sse \ + -mno-sse2 \ + -target i386-unknown-elf + +.PHONY: all +all: biosboot + +.PHONY: biosboot +biosboot: + clang -T../mbr/link.ld $(CFLAGS) biosboot.S -o biosboot.bin diff --git a/boot/arch/amd64/biosboot/biosboot.S b/boot/arch/amd64/biosboot/biosboot.S new file mode 100644 index 0000000..717d29d --- /dev/null +++ b/boot/arch/amd64/biosboot/biosboot.S @@ -0,0 +1,5 @@ + .code16 +_start: + cli + hlt + jmp _start |
