From 9024269ec5ad28fead62d0117ad4035912535f73 Mon Sep 17 00:00:00 2001 From: pantonshire Date: Thu, 27 Jun 2024 08:06:55 +0100 Subject: [PATCH] rename first stage --- boot.s => boot0.s | 10 ++++++++++ justfile | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) rename boot.s => boot0.s (77%) diff --git a/boot.s b/boot0.s similarity index 77% rename from boot.s rename to boot0.s index c094b59..f7551ac 100644 --- a/boot.s +++ b/boot0.s @@ -34,6 +34,16 @@ bits 16 ; TODO: grab all the info we can from bios interrupts and deliver it to ths OS nicely ; 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 %if ($ - $$) > 440 %error "exceeded mbr bootstrap field size" diff --git a/justfile b/justfile index 55b1ba0..94112f5 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ run: - qemu-system-x86_64 -drive format=raw,file=boot.bin + qemu-system-x86_64 -drive format=raw,file=boot0.bin build: - nasm -f bin -o boot.bin boot.s + nasm -f bin -o boot0.bin boot0.s