From f70172129c94e4d53b56fc10a7d859679b581bd2 Mon Sep 17 00:00:00 2001 From: kaashoek Date: Thu, 7 Sep 2006 01:37:58 +0000 Subject: run without lapic and ioapic, if they are not present if no lapic available, use 8253pit for clock now xv6 runs both on qemu (uniprocessor) and bochs (uniprocessor and MP) --- ide.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ide.c') diff --git a/ide.c b/ide.c index f0fd0f9..4e2e1a6 100644 --- a/ide.c +++ b/ide.c @@ -50,6 +50,7 @@ void ide_init(void) { initlock(&ide_lock, "ide"); + irq_setmask_8259A(irq_mask_8259A & ~(1 << IRQ_IDE)); ioapic_enable (IRQ_IDE, ncpu - 1); ide_wait_ready(0); disk_1_present = ide_probe_disk1(); -- cgit v1.2.3