diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-09 21:40:05 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-09 21:40:05 +0200 |
commit | 0be74eeee017b7116126e258b97df5a857dac4ab (patch) | |
tree | 5f1e1b5ac76e74214abb111ab2a0dac64ef2ecef /src/boot.asm | |
parent | 2a83f352967435beb05582e5119b9e9e0cfefe3a (diff) | |
download | abaos-0be74eeee017b7116126e258b97df5a857dac4ab.tar.gz abaos-0be74eeee017b7116126e258b97df5a857dac4ab.tar.bz2 |
tried to probe disk geometry with mixed success (emulated FDD mode
on USB not working). Code in stage1 gets too complex to fit 512
bytes, so we most likely must load stage2 with a simple algorithm
(maybe 8 sectors every bios 13h/2h function is able to deliver). Then
we load the kernel in a second, more complex loading step
Diffstat (limited to 'src/boot.asm')
-rw-r--r-- | src/boot.asm | 4 |
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] |