From 05536d138f046c87937d4ef282d151710133d169 Mon Sep 17 00:00:00 2001 From: Morten Delenk Date: Wed, 14 Oct 2015 20:24:17 +0200 Subject: [PATCH] Correcting a bug in the initilation routine of the keyboard. --- kernel/hal/x86/io/keyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/hal/x86/io/keyboard.cpp b/kernel/hal/x86/io/keyboard.cpp index d3623b8..3087864 100644 --- a/kernel/hal/x86/io/keyboard.cpp +++ b/kernel/hal/x86/io/keyboard.cpp @@ -33,10 +33,10 @@ namespace MTGosHAL { //Check for self-test being passed sendCommand(0x20); uint8_t ccb=inb(0x60); - if(!(ccb&4)) { - debug << "Keyboard didn't pass self-test!\nDeactivating IRQ1.\n"; + if((ccb&4)) { ccb &= ~1; } else { + debug << "Keyboard didn't pass self-test!\nDeactivating IRQ1.\n"; ccb |= 1; } sendCommand(0x60);