#define _ASM_X86_PLATFORM_H
 
 #include <asm/pgtable_types.h>
+#include <asm/bootparam.h>
 
 struct mpc_bus;
 struct mpc_cpu;
  * @probe_roms:                        probe BIOS roms
  * @reserve_resources:         reserve the standard resources for the
  *                             platform
- * @reserve_ebda_region:       reserve the extended bios data area
  * @memory_setup:              platform specific memory setup
  *
  */
 struct x86_init_resources {
        void (*probe_roms)(void);
        void (*reserve_resources)(void);
-       void (*reserve_ebda_region)(void);
        char *(*memory_setup)(void);
 };
 
 
 #include <asm/trampoline.h>
 #include <asm/apic.h>
 #include <asm/io_apic.h>
+#include <asm/bios_ebda.h>
+
+static void __init i386_default_early_setup(void)
+{
+       /* Initilize 32bit specific setup functions */
+       x86_init.resources.probe_roms = probe_roms;
+       x86_init.resources.reserve_resources = i386_reserve_resources;
+       x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
+
+       reserve_ebda_region();
+}
 
 void __init i386_start_kernel(void)
 {
                reserve_early(ramdisk_image, ramdisk_end, "RAMDISK");
        }
 #endif
-       /* Initilize 32bit specific setup functions */
-       x86_init.resources.probe_roms = probe_roms;
-       x86_init.resources.reserve_resources = i386_reserve_resources;
-       x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
 
-       x86_init.resources.reserve_ebda_region();
+       /* Call the subarch specific early setup function */
+       switch (boot_params.hdr.hardware_subarch) {
+       default:
+               i386_default_early_setup();
+               break;
+       }
 
        /*
         * At this point everything still needed from the boot loader
 
 #include <asm/kdebug.h>
 #include <asm/e820.h>
 #include <asm/trampoline.h>
+#include <asm/bios_ebda.h>
 
 static void __init zap_identity_mappings(void)
 {
        }
 #endif
 
-       x86_init.resources.reserve_ebda_region();
+       reserve_ebda_region();
 
        /*
         * At this point everything still needed from the boot loader
 
        .resources = {
                .probe_roms             = x86_init_noop,
                .reserve_resources      = reserve_standard_io_resources,
-               .reserve_ebda_region    = reserve_ebda_region,
                .memory_setup           = default_machine_specific_memory_setup,
        },