summaryrefslogtreecommitdiffstats
path: root/freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2012-10-22 02:27:08 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2012-10-22 02:27:08 +0000
commit8ebe6f6680d65ce825ba707123a48816b1b943d3 (patch)
tree8ba5bac72b24dedabf20d128ec6f0df4f34ed904 /freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch
parent6718c3c9535ec64aa367a78bea198fbb7493deb3 (diff)
downloadlinux-libre-raptor-8ebe6f6680d65ce825ba707123a48816b1b943d3.tar.gz
linux-libre-raptor-8ebe6f6680d65ce825ba707123a48816b1b943d3.zip
tag 3.6.0-1.fc16.gnu
Diffstat (limited to 'freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch')
-rw-r--r--freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch b/freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch
new file mode 100644
index 000000000..7cc614992
--- /dev/null
+++ b/freed-ora/tags/f16/3.6.0-1.fc16.gnu/efi-dont-map-boot-services-on-32bit.patch
@@ -0,0 +1,22 @@
+diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
+index 3ae4128..ff7dc70 100644
+--- a/arch/x86/platform/efi/efi.c
++++ b/arch/x86/platform/efi/efi.c
+@@ -659,10 +659,13 @@ void __init efi_enter_virtual_mode(void)
+
+ for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
+ md = p;
+- if (!(md->attribute & EFI_MEMORY_RUNTIME) &&
+- md->type != EFI_BOOT_SERVICES_CODE &&
+- md->type != EFI_BOOT_SERVICES_DATA)
+- continue;
++ if (!(md->attribute & EFI_MEMORY_RUNTIME)) {
++#ifdef CONFIG_X86_64
++ if (md->type != EFI_BOOT_SERVICES_CODE &&
++ md->type != EFI_BOOT_SERVICES_DATA)
++#endif
++ continue;
++ }
+
+ size = md->num_pages << EFI_PAGE_SHIFT;
+ end = md->phys_addr + size;
OpenPOWER on IntegriCloud