aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-10 00:25:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-12 21:05:00 -0500
commit9f08c905aedd43fc2e5c70511f0c68500ed31748 (patch)
tree6d49dfadfb6a7f89c389950db4d3feaab7d21596
parent5dbf1732940f94771e0b3c45c0960940276bc263 (diff)
downloadseabios-9f08c905aedd43fc2e5c70511f0c68500ed31748.tar.gz
Start device_hardware_setup in mainint even with CONFIG_THREAD_OPTIONROMS.
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>
-rw-r--r--src/post.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/post.c b/src/post.c
index 2c5e34e..d75b868 100644
--- a/src/post.c
+++ b/src/post.c
@@ -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();