aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-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)