diff options
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/stage1_functions.asm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 37ad6fe..3b21ab3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,10 +13,10 @@ all: image.bin kernel.sym # + M * 512 (M is currently 7) = 3144 for kernel.bin # + 1 * 512 = 512 for magic.bin # (M + N + 1 is the number of sectors to be read in stage 2, as stage 1 -# loads only the first sector, so adapt NOF_LOAD_SECTORS to 22) +# loads only the first sector, so adapt NOF_LOAD_SECTORS to 24) image.bin: boot.bin kernel.bin magic.bin cat boot.bin kernel.bin > image.tmp - truncate -s 11264 image.tmp + truncate -s 12288 image.tmp cat image.tmp magic.bin > image.bin boot.bin: boot.asm boot_gdt.asm stage1_functions.asm stage2_functions.asm stage2_switch_mode.asm stage2_a20.asm diff --git a/src/stage1_functions.asm b/src/stage1_functions.asm index fceb680..e30f224 100644 --- a/src/stage1_functions.asm +++ b/src/stage1_functions.asm @@ -2,7 +2,7 @@ ; 3 * 512 for bootloader stage2 and the kernel code ; (note: the first sector gets loaded by the BIOS, so ; subtract 1 here!) -NOF_LOAD_SECTORS equ 22 +NOF_LOAD_SECTORS equ 24 ; IN bx: begin of memory area to dump ; IN ax: number of words to dump |