From 8a8be1b8c36e38f58f8ba3e425b6e701ad65abf3 Mon Sep 17 00:00:00 2001 From: rtm Date: Thu, 10 Aug 2006 02:07:10 +0000 Subject: low-level keyboard input (not hooked up to /dev yet) fix acquire() to cli() *before* incrementing nlock make T_SYSCALL a trap gate, not an interrupt gate sadly, various crashes if you hold down a keyboard key... --- ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ide.c') diff --git a/ide.c b/ide.c index 400b726..67fb613 100644 --- a/ide.c +++ b/ide.c @@ -49,7 +49,7 @@ ide_init(void) if (ncpu < 2) { panic ("ide_init: disk interrupt is going to the second cpu\n"); } - ioapic_enable (14, 1); // 14 is IRQ # for IDE + ioapic_enable (IRQ_IDE, 1); ide_wait_ready(0); cprintf ("cpu%d: ide_init:done\n", cpu()); } -- cgit v1.2.3