summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-02 17:48:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-02 17:48:14 +0200
commitbb4b53475cbd5ddc72200dcb8080fe3d324ffc34 (patch)
tree3d89234d940d8da9b3a55093287da1fa2a9f7285
parent9d33a61d88910027dd33fe6febfc52fb4e204ff7 (diff)
downloadabaos-bb4b53475cbd5ddc72200dcb8080fe3d324ffc34.tar.gz
abaos-bb4b53475cbd5ddc72200dcb8080fe3d324ffc34.tar.bz2
..
-rw-r--r--src/Makefile4
-rw-r--r--src/stage1_functions.asm2
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