aboutsummaryrefslogtreecommitdiff
path: root/src/pc80
diff options
context:
space:
mode:
authorPhilipp Degler <pdegler@rumms.uni-mannheim.de>2007-05-24 13:55:45 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-05-24 13:55:45 +0000
commit5ecfa2963d4d8d80a01eddbecba87124dee3c516 (patch)
treeb8b8f6c4c1910356ada128770854260d514ed434 /src/pc80
parent1bccabc16c9044919c9e6eeb1977cf256ded0ae9 (diff)
Small patch that adds an error message in case the keyboard selftest fails.
Signed-off-by: Philipp Degler <pdegler@rumms.uni-mannheim.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2694 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/pc80')
-rw-r--r--src/pc80/keyboard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pc80/keyboard.c b/src/pc80/keyboard.c
index ccec00488c..c5e384800f 100644
--- a/src/pc80/keyboard.c
+++ b/src/pc80/keyboard.c
@@ -43,8 +43,10 @@ static void pc_keyboard_init(struct pc_keyboard *keyboard)
}
/* read self-test result, 0x55 should be returned form 0x60 */
- if ((regval = inb(0x60) != 0x55))
+ if ((regval = inb(0x60) != 0x55)) {
+ printk_err("Keyboard selftest failed\n");
return;
+ }
/* enable keyboard interface */
outb(0x60, 0x64);