[PATCH v3 3/5] x86: Call efi_memblock_x86_reserve_range() on native EFI platform only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-efi@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Subject: [PATCH v3 3/5] x86: Call efi_memblock_x86_reserve_range() on native EFI platform only
- From: Daniel Kiper <daniel.kiper@xxxxxxxxxx>
- Date: Tue, 25 Mar 2014 21:57:54 +0100
- Cc: boris.ostrovsky@xxxxxxxxxx, david.vrabel@xxxxxxxxxx, eshelton@xxxxxxxxx, fenghua.yu@xxxxxxxxx, hpa@xxxxxxxxx, ian.campbell@xxxxxxxxxx, jbeulich@xxxxxxxx, jeremy@xxxxxxxx, konrad.wilk@xxxxxxxxxx, matt.fleming@xxxxxxxxx, mingo@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, tony.luck@xxxxxxxxx, Daniel Kiper <daniel.kiper@xxxxxxxxxx>
- In-reply-to: <1395781076-12000-1-git-send-email-daniel.kiper@oracle.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1395781076-12000-1-git-send-email-daniel.kiper@oracle.com>
Call efi_memblock_x86_reserve_range() on native EFI platform only.
This is not needed and even it should not be called on platforms
which wraps EFI infrastructure like Xen.
Signed-off-by: Daniel Kiper <daniel.kiper@xxxxxxxxxx>
---
arch/x86/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index ce72964..992b67a 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -933,7 +933,7 @@ void __init setup_arch(char **cmdline_p)
set_bit(EFI_64BIT, &x86_efi_facility);
}
- if (efi_enabled(EFI_BOOT))
+ if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature, "EL", 2))
efi_memblock_x86_reserve_range();
#endif
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]