Merge commit 'v2.6.36-rc3' into x86/memblock
[cascardo/linux.git] / arch / x86 / kernel / setup.c
index 1d114ff..bf89e0a 100644 (file)
 
 #include <asm/paravirt.h>
 #include <asm/hypervisor.h>
+#include <asm/olpc_ofw.h>
 
 #include <asm/percpu.h>
 #include <asm/topology.h>
@@ -745,10 +746,15 @@ void __init setup_arch(char **cmdline_p)
        /* VMI may relocate the fixmap; do this before touching ioremap area */
        vmi_init();
 
+       /* OFW also may relocate the fixmap */
+       olpc_ofw_detect();
+
        early_trap_init();
        early_cpu_init();
        early_ioremap_init();
 
+       setup_olpc_ofw_pgd();
+
        ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev);
        screen_info = boot_params.screen_info;
        edid_info = boot_params.edid_info;
@@ -1024,6 +1030,8 @@ void __init setup_arch(char **cmdline_p)
        paging_init();
        x86_init.paging.pagetable_setup_done(swapper_pg_dir);
 
+       setup_trampoline_page_table();
+
        tboot_probe();
 
 #ifdef CONFIG_X86_64