]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86/EFI: fix EFI_MEMORY_WP handling
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Jun 2015 10:01:35 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Jun 2015 10:01:35 +0000 (12:01 +0200)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/efi/boot.c

index 4b816f28629efa8284395515618f898b13bc1bc9..130166e75e13790e48c8461e0fcd37aa191a0ce7 100644 (file)
@@ -1202,7 +1202,7 @@ void __init efi_init_memory(void)
         }
 
         if ( desc->Attribute & EFI_MEMORY_WP )
-            prot &= _PAGE_RW;
+            prot &= ~_PAGE_RW;
         if ( desc->Attribute & EFI_MEMORY_XP )
             prot |= _PAGE_NX;