projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi...
[cascardo/linux.git]
/
arch
/
arm64
/
kernel
/
efi.c
diff --git
a/arch/arm64/kernel/efi.c
b/arch/arm64/kernel/efi.c
index
ab5eeb6
..
4b7df34
100644
(file)
--- a/
arch/arm64/kernel/efi.c
+++ b/
arch/arm64/kernel/efi.c
@@
-249,7
+249,8
@@
static bool __init efi_virtmap_init(void)
*/
if (!is_normal_ram(md))
prot = __pgprot(PROT_DEVICE_nGnRE);
- else if (md->type == EFI_RUNTIME_SERVICES_CODE)
+ else if (md->type == EFI_RUNTIME_SERVICES_CODE ||
+ !PAGE_ALIGNED(md->phys_addr))
prot = PAGE_KERNEL_EXEC;
else
prot = PAGE_KERNEL;