aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-13 19:35:12 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-13 19:35:12 -0500
commita2a86e2954d646131b1c04c9c7649fded81b9dc7 (patch)
treeaeece913f5a512f37a37da8dd69dfed1ed59007f /src/post.c
parentb840ba996d9f90a213335ea18c9d620391b745d6 (diff)
downloadseabios-a2a86e2954d646131b1c04c9c7649fded81b9dc7.tar.gz
Group QEMU platform setup together and move to paravirt.c.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/src/post.c b/src/post.c
index 3af36382..f2eded97 100644
--- a/src/post.c
+++ b/src/post.c
@@ -159,24 +159,9 @@ platform_hardware_setup(void)
mathcp_setup();
timer_setup();
- // Initialize pci
- pci_setup();
- smm_setup();
-
- // Initialize mtrr and smp
- mtrr_setup();
- smp_setup();
-
- // Setup Xen hypercalls
- xen_hypercall_setup();
-
- // Setup external BIOS interface tables
- if (CONFIG_COREBOOT)
- coreboot_biostable_setup();
- else if (runningOnXen())
- xen_biostable_setup();
- else
- qemu_biostable_setup();
+ // Platform specific setup
+ qemu_platform_setup();
+ coreboot_platform_setup();
}
void
@@ -314,12 +299,8 @@ void VISIBLE32INIT
dopost(void)
{
// Detect ram and setup internal malloc.
- if (CONFIG_COREBOOT)
- coreboot_preinit();
- else if (runningOnXen())
- xen_ramsize_preinit();
- else
- qemu_ramsize_preinit();
+ qemu_preinit();
+ coreboot_preinit();
malloc_preinit();
// Relocate initialization code and call maininit().