rename first stage

main
pantonshire 1 year ago
parent 0c74d1e873
commit 9024269ec5

@ -34,6 +34,16 @@ bits 16
; TODO: grab all the info we can from bios interrupts and deliver it to ths OS nicely ; TODO: grab all the info we can from bios interrupts and deliver it to ths OS nicely
; e.g. in a fixed memory location ; e.g. in a fixed memory location
; TODO:
; - Generate GPT in justfile
; - Parse global parition table
; - Load second stage from GPT partition with a particular UUID / name like GRUB does
; (it's Hah!IdontNeedEFI in GRUB)
; - https://en.wikipedia.org/wiki/BIOS_boot_partition
; - Future work:
; - Boot from UEFI
; - Boot on non-GPT partitioned disk
; MBR bootstrap field is 440 bytes long ; MBR bootstrap field is 440 bytes long
%if ($ - $$) > 440 %if ($ - $$) > 440
%error "exceeded mbr bootstrap field size" %error "exceeded mbr bootstrap field size"

@ -1,6 +1,6 @@
run: run:
qemu-system-x86_64 -drive format=raw,file=boot.bin qemu-system-x86_64 -drive format=raw,file=boot0.bin
build: build:
nasm -f bin -o boot.bin boot.s nasm -f bin -o boot0.bin boot0.s

Loading…
Cancel
Save