From: Ben Gras Date: Tue, 24 Mar 2009 16:08:10 +0000 (+0000) Subject: don't execute hlt in real mode. X-Git-Tag: v3.1.4~93 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=ec50fa00c7da2649be3600bb7476da6bd8385ce5;p=minix.git don't execute hlt in real mode. workaround for getting minix under qemu kvm. Ameya, ape800 at few.vu.nl. --- diff --git a/boot/boothead.s b/boot/boothead.s index b79689c3b..5a3bf7d35 100755 --- a/boot/boothead.s +++ b/boot/boothead.s @@ -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);