don't execute hlt in real mode.
workaround for getting minix under qemu kvm. Ameya, ape800 at few.vu.nl.
This commit is contained in:
parent
fc11209417
commit
ec50fa00c7
|
@ -640,7 +640,7 @@ _getch:
|
||||||
test ax, ax
|
test ax, ax
|
||||||
jnz gotch
|
jnz gotch
|
||||||
getch:
|
getch:
|
||||||
hlt ! Play dead until interrupted (see pause())
|
! hlt ! Play dead until interrupted (see pause())
|
||||||
movb ah, #0x01 ! Keyboard status
|
movb ah, #0x01 ! Keyboard status
|
||||||
int 0x16
|
int 0x16
|
||||||
jz 0f ! Nothing typed
|
jz 0f ! Nothing typed
|
||||||
|
@ -741,7 +741,7 @@ nulch: ret
|
||||||
! power, or tells an x86 emulator that nothing is happening right now.
|
! power, or tells an x86 emulator that nothing is happening right now.
|
||||||
.define _pause
|
.define _pause
|
||||||
_pause:
|
_pause:
|
||||||
hlt
|
! hlt
|
||||||
ret
|
ret
|
||||||
|
|
||||||
! void set_mode(unsigned mode);
|
! void set_mode(unsigned mode);
|
||||||
|
|
Loading…
Reference in a new issue