aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_32.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-23 22:53:33 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:50:25 -0400
commit7465252ea0121c9cd28be68dfb86293a7554a111 (patch)
tree3bb600ac5bc3e595a7c903c719a9a4b5270dfc7b /arch/x86/kernel/setup_32.c
parent11cd0bc140b5d66566c9eb49c1058737888cd75c (diff)
x86: setup_arch 32bit move efi check later
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_32.c')
-rw-r--r--arch/x86/kernel/setup_32.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index 220d92faf0a9..52f4e01bb655 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -336,14 +336,6 @@ void __init setup_arch(char **cmdline_p)
336 early_ioremap_init(); 336 early_ioremap_init();
337 reserve_setup_data(); 337 reserve_setup_data();
338 338
339#ifdef CONFIG_EFI
340 if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
341 "EL32", 4)) {
342 efi_enabled = 1;
343 efi_reserve_early();
344 }
345#endif
346
347 ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev); 339 ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev);
348 screen_info = boot_params.screen_info; 340 screen_info = boot_params.screen_info;
349 edid_info = boot_params.edid_info; 341 edid_info = boot_params.edid_info;
@@ -363,10 +355,17 @@ void __init setup_arch(char **cmdline_p)
363 rd_prompt = ((boot_params.hdr.ram_size & RAMDISK_PROMPT_FLAG) != 0); 355 rd_prompt = ((boot_params.hdr.ram_size & RAMDISK_PROMPT_FLAG) != 0);
364 rd_doload = ((boot_params.hdr.ram_size & RAMDISK_LOAD_FLAG) != 0); 356 rd_doload = ((boot_params.hdr.ram_size & RAMDISK_LOAD_FLAG) != 0);
365#endif 357#endif
358#ifdef CONFIG_EFI
359 if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
360 "EL32", 4)) {
361 efi_enabled = 1;
362 efi_reserve_early();
363 }
364#endif
365
366 ARCH_SETUP 366 ARCH_SETUP
367 367
368 setup_memory_map(); 368 setup_memory_map();
369
370 copy_edd(); 369 copy_edd();
371 370
372 if (!boot_params.hdr.root_flags) 371 if (!boot_params.hdr.root_flags)