Nyanix

Bootloader
Log | Files | Refs | LICENSE

commit de5ef81843e0c1655b3957bf52164a937abd2014
parent c9028f021b13f2d19e4e4b9f90e3ea473dac25b1
Author: Dani Frisk <dani@silverskin.fi>
Date:   Sun,  2 Dec 2018 21:23:17 +0200

Big bugfix

Diffstat:
src/boot_early/second_stage.s | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/boot_early/second_stage.s b/src/boot_early/second_stage.s @@ -56,6 +56,7 @@ main: cmp eax, 0 je .a20_is_enabled + sti ; we apparently failed to enable a20 gate. :( mov esi, msg_a20_fail call panic @@ -72,8 +73,16 @@ main: mov esi, msg_main_loader_ret call panic -; Fancy little panic function. panic: - cli - hlt - + lodsb + or al, al + mov ah, 0x0E + int 0x10 + cmp al, 0 + jne panic + .hang: + cli + hlt + jmp .hang + +