summaryrefslogtreecommitdiff
path: root/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide.c')
-rw-r--r--ide.c2
1 files changed, 1 insertions, 1 deletions
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());
}