diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-02-13 19:35:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-02-13 19:35:12 -0500 |
commit | a2a86e2954d646131b1c04c9c7649fded81b9dc7 (patch) | |
tree | aeece913f5a512f37a37da8dd69dfed1ed59007f /src/post.c | |
parent | b840ba996d9f90a213335ea18c9d620391b745d6 (diff) | |
download | seabios-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.c | 29 |
1 files changed, 5 insertions, 24 deletions
@@ -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(). |