diff options
author | Frans Kaashoek <kaashoek@mit.edu> | 2017-08-09 07:43:06 -0400 |
---|---|---|
committer | Frans Kaashoek <kaashoek@mit.edu> | 2017-08-09 07:44:51 -0400 |
commit | 4f14d8d1e594bdf45e36a035f6c3fd4ca959711e (patch) | |
tree | bef4071d263d8dc36f4a01e9342b0a697dc1dc7b /ioapic.c | |
parent | 70705966adb7a055582f76f2ecdb5ce9cd3c8a85 (diff) | |
download | xv6-labs-4f14d8d1e594bdf45e36a035f6c3fd4ca959711e.tar.gz xv6-labs-4f14d8d1e594bdf45e36a035f6c3fd4ca959711e.tar.bz2 xv6-labs-4f14d8d1e594bdf45e36a035f6c3fd4ca959711e.zip |
Commit to running on an SMP (perhaps with only 1 core). Remove most code
from picirq.c and remove timer.c completely. Update runoff.list.
Diffstat (limited to 'ioapic.c')
-rw-r--r-- | ioapic.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -50,9 +50,6 @@ ioapicinit(void) { int i, id, maxintr; - if(!ismp) - return; - ioapic = (volatile struct ioapic*)IOAPIC; maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; id = ioapicread(REG_ID) >> 24; @@ -70,9 +67,6 @@ ioapicinit(void) void ioapicenable(int irq, int cpunum) { - if(!ismp) - return; - // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. |