diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-15 21:24:36 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-15 21:24:36 +0200 |
commit | f8dd9dd71ab603af23e008f1147f652b429c9296 (patch) | |
tree | 316bbf3585b9baeb55ca2b870e7be4724ce4936c /src/boot/boot.asm | |
parent | 48f0fe5954a445ba890b6a3633bbbf46cddd07c9 (diff) | |
download | abaos-f8dd9dd71ab603af23e008f1147f652b429c9296.tar.gz abaos-f8dd9dd71ab603af23e008f1147f652b429c9296.tar.bz2 |
increased size of stage 2 bootloader by 1024 bytes
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: |