diff options
Diffstat (limited to 'src/boot/boot.asm')
-rw-r--r-- | src/boot/boot.asm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/boot/boot.asm b/src/boot/boot.asm index c3cb57e..75ad05e 100644 --- a/src/boot/boot.asm +++ b/src/boot/boot.asm @@ -106,7 +106,7 @@ stage2: call print_string -; load kernel to 0x8400 (directly after stage 2 +; load kernel to 0x8800 (directly after stage 2 ; of the boot loader) mov dl, [BOOT_DRIVE] call read_from_disk @@ -220,8 +220,11 @@ MESSAGE_HALTED: %include "boot/stage2_check_magic.asm" ; make sure we have full sectors, stage 1 is 512 bytes, so we -; have to will up 3 sectors -times 2048-($-$$) db 0 +; have to will up 5 sectors (gives 6 in total for stage 1 and 2) +times 3070-($-$$) db 0 -; position is 0x8400 now for the C entry +; magic number of stage 2 +dw 0xAABB + +; position is 0x8800 now for the C entry kernel_main: |