summaryrefslogtreecommitdiff
path: root/ioapic.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-08-11 18:18:38 +0000
committerkaashoek <kaashoek>2006-08-11 18:18:38 +0000
commit24437cd554995f729969299e72699e2ba5d9b068 (patch)
treee3b5aa572c9621d1f932788fc882d4e6d693473f /ioapic.c
parent17a856577f9db766b8ef7099d0575d378dff5dd1 (diff)
downloadxv6-labs-24437cd554995f729969299e72699e2ba5d9b068.tar.gz
xv6-labs-24437cd554995f729969299e72699e2ba5d9b068.tar.bz2
xv6-labs-24437cd554995f729969299e72699e2ba5d9b068.zip
fix deadlock---iput(dp) asap
working unlink, but doesn't free dir blocks that become empty remove out-of-date comment in ioapic
Diffstat (limited to 'ioapic.c')
-rw-r--r--ioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ioapic.c b/ioapic.c
index b926863..0bd672a 100644
--- a/ioapic.c
+++ b/ioapic.c
@@ -76,7 +76,7 @@ ioapic_enable (int irq, int cpunum)
ioapic_write(io, IOAPIC_REDTBL_LO(irq), l);
h = ioapic_read(io, IOAPIC_REDTBL_HI(irq));
h &= ~IOART_DEST;
- h |= (cpunum << APIC_ID_SHIFT); // for fun, disk interrupts to cpu 1
+ h |= (cpunum << APIC_ID_SHIFT);
ioapic_write(io, IOAPIC_REDTBL_HI(irq), h);
cprintf("cpu%d: intr %d: lo 0x%x hi 0x%x\n", cpu(), irq, l, h);
}