|
|
|
@ -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"
|