applied hint by Black_mirror for keyboard work after kernel restart

git-svn-id: svn://kolibrios.org@301 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2007-01-30 16:36:36 +00:00
parent 0e85b8f362
commit b5e0fe41ca

View File

@ -368,6 +368,13 @@ restart_kernel_4000:
jcxz $+2
sti
; (hint by Black_mirror)
; We must read data from keyboard port,
; because there may be situation when previous keyboard interrupt is lost
; (due to return to real mode and IRQ reprogramming)
; and next interrupt will not be generated (as keyboard waits for handling)
in al, 0x60
; bootloader interface
push 0x1000
pop ds