]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: setup_arch 32bit move efi check later
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 24 Jun 2008 02:53:33 +0000 (19:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 10:50:25 +0000 (12:50 +0200)
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_32.c

index 220d92faf0a9cfeda38df1d7b2a39cf834d7df24..52f4e01bb655cf3a6a844b93ffe5ba2fc3ab1993 100644 (file)
@@ -336,14 +336,6 @@ void __init setup_arch(char **cmdline_p)
        early_ioremap_init();
        reserve_setup_data();
 
-#ifdef CONFIG_EFI
-       if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
-                    "EL32", 4)) {
-               efi_enabled = 1;
-               efi_reserve_early();
-       }
-#endif
-
        ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev);
        screen_info = boot_params.screen_info;
        edid_info = boot_params.edid_info;
@@ -363,10 +355,17 @@ void __init setup_arch(char **cmdline_p)
        rd_prompt = ((boot_params.hdr.ram_size & RAMDISK_PROMPT_FLAG) != 0);
        rd_doload = ((boot_params.hdr.ram_size & RAMDISK_LOAD_FLAG) != 0);
 #endif
+#ifdef CONFIG_EFI
+       if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
+                    "EL32", 4)) {
+               efi_enabled = 1;
+               efi_reserve_early();
+       }
+#endif
+
        ARCH_SETUP
 
        setup_memory_map();
-
        copy_edd();
 
        if (!boot_params.hdr.root_flags)