summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 9580d79..acb948a 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -296,10 +296,12 @@ cpu_startup(dummy)
cpu_setregs();
+#ifdef SMP
/*
* Add BSP as an interrupt target.
*/
intr_add_cpu(0);
+#endif
}
/*
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index fb6ad62..b1757ca 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -337,10 +337,12 @@ cpu_startup(dummy)
cpu_setregs();
#endif
+#ifdef SMP
/*
* Add BSP as an interrupt target.
*/
intr_add_cpu(0);
+#endif
}
/*
OpenPOWER on IntegriCloud