diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-09-20 03:52:09 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-09-20 03:52:09 -0400 |
| commit | ee0424218cd385c334c7b8916c4dda3fb797b3ce (patch) | |
| tree | 6e2264c21d2c025c18b0b36232be79b7d3ef8e44 /arch/x86 | |
| parent | f42bcf1aa84a4c4348d53ac3013eff2b642987e5 (diff) | |
| parent | 700870119f49084da004ab588ea2b799689efaf7 (diff) | |
Merge tag 'efi-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into x86/urgent
Pull EFI fix from Matt Flemin:
" * Fix WARNING on i386 by only enabling a workaround for x86-64 since
we've never encountered the bug on i386 - Josh Boyer "
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
| -rw-r--r-- | arch/x86/platform/efi/efi.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 90f6ed127096..c7e22ab29a5a 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
| @@ -912,10 +912,13 @@ void __init efi_enter_virtual_mode(void) | |||
| 912 | 912 | ||
| 913 | for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) { | 913 | for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) { |
| 914 | md = p; | 914 | md = p; |
| 915 | if (!(md->attribute & EFI_MEMORY_RUNTIME) && | 915 | if (!(md->attribute & EFI_MEMORY_RUNTIME)) { |
| 916 | md->type != EFI_BOOT_SERVICES_CODE && | 916 | #ifdef CONFIG_X86_64 |
| 917 | md->type != EFI_BOOT_SERVICES_DATA) | 917 | if (md->type != EFI_BOOT_SERVICES_CODE && |
| 918 | continue; | 918 | md->type != EFI_BOOT_SERVICES_DATA) |
| 919 | #endif | ||
| 920 | continue; | ||
| 921 | } | ||
| 919 | 922 | ||
| 920 | size = md->num_pages << EFI_PAGE_SHIFT; | 923 | size = md->num_pages << EFI_PAGE_SHIFT; |
| 921 | end = md->phys_addr + size; | 924 | end = md->phys_addr + size; |
