diff options
Diffstat (limited to 'src/boot/stage2_real_functions.asm')
-rw-r--r-- | src/boot/stage2_real_functions.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/boot/stage2_real_functions.asm b/src/boot/stage2_real_functions.asm index 87642c2..84713d5 100644 --- a/src/boot/stage2_real_functions.asm +++ b/src/boot/stage2_real_functions.asm @@ -1,8 +1,8 @@ ; number of sectors to be read for the kernel itself ; (note: the first sector gets loaded by the BIOS, the -; next 3 sectors are read by the simple stage 1 loader, -; so subtract 3 here!) -NOF_LOAD_SECTORS equ 44 +; next 5 sectors are read by the simple stage 1 loader, +; so subtract 5 here!) +NOF_LOAD_SECTORS equ 42 ; data sections used for reading the kernel from disk SECTORS_PER_CYLINDER: @@ -13,7 +13,7 @@ NOF_HEADS: SECTORS_TO_LOAD: db NOF_LOAD_SECTORS ; load NOF_LOAD_SECTORS sectors in total CURRENT_SECTOR: - db 5 ; first sector after stage 2 + db 7 ; first sector after stage 2 CURRENT_CYLINDER: db 0 CURRENT_HEAD: @@ -90,7 +90,7 @@ read_from_disk: mov bx, 0 ; where to store the data mov es, bx - mov bx, 0x8400 ; 2'048 bytes after first sector + mov bx, 0x8800 ; 3072 bytes after first sector .read_next_sector: |