summaryrefslogtreecommitdiff
path: root/ioapic.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2017-08-09 07:43:06 -0400
committerFrans Kaashoek <[email protected]>2017-08-09 07:44:51 -0400
commit4f14d8d1e594bdf45e36a035f6c3fd4ca959711e (patch)
treebef4071d263d8dc36f4a01e9342b0a697dc1dc7b /ioapic.c
parent70705966adb7a055582f76f2ecdb5ce9cd3c8a85 (diff)
downloadxv6-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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ioapic.c b/ioapic.c
index 0e9116f..cb0f015 100644
--- a/ioapic.c
+++ b/ioapic.c
@@ -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.