1KiB stack stage2 gets doesn't need extra information from the mbr/vbr now.

This commit is contained in:
2025-09-12 23:13:57 -04:00
parent a8b24c7b01
commit 40fa4062ce
2 changed files with 7 additions and 44 deletions

View File

@@ -140,15 +140,7 @@ main:
je main.sig_ok
ERROR MBR_ERROR_NO_VBR_SIG ; no signature present
.sig_ok:
push PartTable_t_size ; len
push DiskSig ; src -> start of partition table
push partition_table ; dst -> addr in bss
call kmemcpy ; copy partition table to bss
add sp, 0x6
mov si, word [bp - 4] ; partition_offset address
mov dl, byte [bp - 2] ; pass drive # from BIOS to VBR in dl
mov bx, partition_table ; partition_table address
jmp word 0x0000:VBR_ENTRY
; ###############
@@ -181,14 +173,11 @@ BootSig:
section .bss follows=.text
begin_bss:
align 16, resb 1
partition_table resb PartTable_t_size
align 16, resb 1
lba_packet resb LBAPkt_t_size
align 512, resb 1
stack_bottom resb 512 - 16 ; 512 byte stack early on
stack_bottom resb 1024 - 16 ; 512 byte stack early on
stack_top:
mbr_redzone resb 16
end_bss: