[tyndur-devel] [PATCH] kbc: Nicht auf erfolgreichen Selbsttest bestehen
Antworten
- [tyndur-devel] [PATCH] kbc: Nicht auf erfolgreichen Selbsttest bestehen · Antoine Kaufmann
Kevin Wolf ·
! kbc: In bochs ist das Statusbit fuer erfolgreichen nicht gesetzt und laesst sich auch nicht so einfach setzen. Pruefen wir eben nicht mehr darauf. Signed-off-by: Kevin Wolf <kevin at tyndur.org> --- src/modules/kbc/keyboard.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/modules/kbc/keyboard.c b/src/modules/kbc/keyboard.c index 2303228..26b65d3 100644 --- a/src/modules/kbc/keyboard.c +++ b/src/modules/kbc/keyboard.c @@ -82,7 +82,9 @@ static void send_key_event(uint8_t keycode, bool release); */ static void send_kbd_command(uint8_t command) { - while ((inb(0x64) & 0x6) != 0x4) yield(); + while (inb(0x64) & 0x2) { + yield(); + } outb(0x60, command); } -- 1.6.0.2