]> xenbits.xensource.com Git - seabios.git/commitdiff
Start device_hardware_setup in mainint even with CONFIG_THREAD_OPTIONROMS.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 10 Feb 2013 05:25:53 +0000 (00:25 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 13 Feb 2013 02:05:00 +0000 (21:05 -0500)
There's no real gain to starting the device_hardware_setup in the
middle of the platform setup.  Always start it just prior to the VGA
rom.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/post.c

index 2c5e34e654193046947c402311c5869fcdaad37b..d75b868e0cb3515a92283b3889b203befe739eb6 100644 (file)
@@ -163,19 +163,13 @@ platform_hardware_setup(void)
     pci_setup();
     smm_setup();
 
-    // Initialize mtrr
+    // Initialize mtrr and smp
     mtrr_setup();
+    smp_setup();
 
     // Setup Xen hypercalls
     xen_hypercall_setup();
 
-    // Start hardware initialization (if optionrom threading)
-    if (CONFIG_THREAD_OPTIONROMS)
-        device_hardware_setup();
-
-    // Find and initialize other cpus
-    smp_setup();
-
     // Setup external BIOS interface tables
     if (CONFIG_COREBOOT)
         coreboot_biostable_setup();
@@ -225,6 +219,10 @@ maininit(void)
     // Setup platform devices.
     platform_hardware_setup();
 
+    // Start hardware initialization (if optionrom threading)
+    if (CONFIG_THREAD_OPTIONROMS)
+        device_hardware_setup();
+
     // Run vga option rom
     vgarom_setup();