summaryrefslogtreecommitdiff
path: root/src/boot.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.asm')
-rw-r--r--src/boot.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot.asm b/src/boot.asm
index 3f9c127..88f7404 100644
--- a/src/boot.asm
+++ b/src/boot.asm
@@ -40,6 +40,10 @@
mov si, MESSAGE_LOADING_STAGE_2
call print_string
+; detect disk geometry
+ mov dl, [BOOT_DRIVE]
+ call detect_disk_geometry
+
; load stage 2 and the kernel together to 0x7e00 (directly
; after the boot sector)
mov dl, [BOOT_DRIVE]