Improve smp detection code.
[seabios.git] / src / mptable.c
index b1b05e1e6a76a1c01edaa534ad2cb1e8bce3dffd..5550fd247281dc19f9ce0db123efb45cefb43950 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "util.h" // dprintf
 #include "memmap.h" // bios_table_cur_addr
+#include "config.h" // CONFIG_*
 
 static void putb(u8 **pp, int val)
 {
@@ -48,6 +49,9 @@ static void putle32(u8 **pp, int val)
 void
 mptable_init(void)
 {
+    if (! CONFIG_MPTABLE)
+        return;
+
     u8 *mp_config_table, *q, *float_pointer_struct;
     int ioapic_id, i, len;
     int mp_config_table_size;