mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/EFI: fix EFI_MEMORY_WP handling
Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
d4300db3a0
commit
af23e79f46
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||