]> Zhao Yanbai Git Server - minix.git/commitdiff
don't execute hlt in real mode.
authorBen Gras <ben@minix3.org>
Tue, 24 Mar 2009 16:08:10 +0000 (16:08 +0000)
committerBen Gras <ben@minix3.org>
Tue, 24 Mar 2009 16:08:10 +0000 (16:08 +0000)
workaround for getting minix under qemu kvm.
Ameya, ape800 at few.vu.nl.

boot/boothead.s

index b79689c3b610a21688204b942874c01e9ebb0017..5a3bf7d35cc85bd4cbe7b42dde98d4db8849aefe 100755 (executable)
@@ -640,7 +640,7 @@ _getch:
        test    ax, ax
        jnz     gotch
 getch:
-       hlt                     ! Play dead until interrupted (see pause())
+!      hlt                     ! Play dead until interrupted (see pause())
        movb    ah, #0x01       ! Keyboard status
        int     0x16
        jz      0f              ! Nothing typed
@@ -741,7 +741,7 @@ nulch:      ret
 !      power, or tells an x86 emulator that nothing is happening right now.
 .define _pause
 _pause:
-       hlt
+!      hlt
        ret
 
 ! void set_mode(unsigned mode);