diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index d7d5099fe874..88638883176a 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -749,10 +749,16 @@ void __init setup_arch(char **cmdline_p) | |||
749 | #endif | 749 | #endif |
750 | #ifdef CONFIG_EFI | 750 | #ifdef CONFIG_EFI |
751 | if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature, | 751 | if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature, |
752 | EFI_LOADER_SIGNATURE, 4)) { | 752 | "EL32", 4)) { |
753 | efi_enabled = 1; | 753 | efi_enabled = 1; |
754 | efi_memblock_x86_reserve_range(); | 754 | efi_64bit = false; |
755 | } else if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature, | ||
756 | "EL64", 4)) { | ||
757 | efi_enabled = 1; | ||
758 | efi_64bit = true; | ||
755 | } | 759 | } |
760 | if (efi_enabled && efi_memblock_x86_reserve_range()) | ||
761 | efi_enabled = 0; | ||
756 | #endif | 762 | #endif |
757 | 763 | ||
758 | x86_init.oem.arch_setup(); | 764 | x86_init.oem.arch_setup(); |