summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-13 21:15:52 +0200
committerAlmuHS <almuhs@github.com>2019-05-13 21:15:52 +0200
commit12478c0d40c8a036e939b04bbc57d3b0974c8418 (patch)
tree34ad5bca37bae6cf7137af932dd735b24307ee3c
parent6885fd35a97c67e99ea93cb661a8451af301086e (diff)
Revert "Revert "hide cpu enumeration if NCPUS == 1""
This reverts commit 6885fd35a97c67e99ea93cb661a8451af301086e. undone fail revert
-rw-r--r--i386/i386at/model_dep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 2dea5a52..aaa6c3c7 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -419,6 +419,8 @@ i386at_init(void)
}
#endif /* MACH_XEN */
+
+#if NCPUS > 1
/*Read lapic and ioapic from acpi tables*/
if(acpi_setup() == 0)
{
@@ -428,6 +430,7 @@ i386at_init(void)
{
panic("could not find acpi tables for multiprocessor");
}
+#endif
/*