From a2a86e2954d646131b1c04c9c7649fded81b9dc7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 13 Feb 2013 19:35:12 -0500 Subject: Group QEMU platform setup together and move to paravirt.c. Signed-off-by: Kevin O'Connor --- src/post.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'src/post.c') 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(). -- cgit