aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/efi.c')
-rw-r--r--arch/x86/kernel/efi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index 57b57778bf60..a70fe77354b8 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -396,10 +396,10 @@ static void __init runtime_code_page_mkexec(void)
396 md = p; 396 md = p;
397 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); 397 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT);
398 if (md->type == EFI_RUNTIME_SERVICES_CODE && 398 if (md->type == EFI_RUNTIME_SERVICES_CODE &&
399 (end >> PAGE_SHIFT) <= max_pfn_mapped) 399 (end >> PAGE_SHIFT) <= max_pfn_mapped) {
400 change_page_attr_addr(md->virt_addr, 400 set_memory_x(md->virt_addr, md->num_pages);
401 md->num_pages, 401 set_memory_uc(md->virt_addr, md->num_pages);
402 PAGE_KERNEL_EXEC_NOCACHE); 402 }
403 } 403 }
404 __flush_tlb_all(); 404 __flush_tlb_all();
405} 405}