From b5e0fe41cadcd35fdc2a6bc767c59b74fd9c8e4e Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Tue, 30 Jan 2007 16:36:36 +0000 Subject: [PATCH] applied hint by Black_mirror for keyboard work after kernel restart git-svn-id: svn://kolibrios.org@301 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/shutdown.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/trunk/boot/shutdown.inc b/kernel/trunk/boot/shutdown.inc index 430ca6a6d8..13b5bea8b0 100644 --- a/kernel/trunk/boot/shutdown.inc +++ b/kernel/trunk/boot/shutdown.inc @@ -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