Module Name: src Committed By: skrll Date: Sun Apr 10 10:01:15 UTC 2022
Modified Files: src/sys/arch/aarch64/aarch64: pmap.c Log Message: No need to flush icache for EFI RT mappings as bootaa64.efi flushed the full icache for us. (Also this avoids traps) To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.134 src/sys/arch/aarch64/aarch64/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/aarch64/aarch64/pmap.c diff -u src/sys/arch/aarch64/aarch64/pmap.c:1.133 src/sys/arch/aarch64/aarch64/pmap.c:1.134 --- src/sys/arch/aarch64/aarch64/pmap.c:1.133 Sat Apr 9 23:38:31 2022 +++ src/sys/arch/aarch64/aarch64/pmap.c Sun Apr 10 10:01:15 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.133 2022/04/09 23:38:31 riastradh Exp $ */ +/* $NetBSD: pmap.c,v 1.134 2022/04/10 10:01:15 skrll Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu <r...@nerv.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.133 2022/04/09 23:38:31 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.134 2022/04/10 10:01:15 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_cpuoptions.h" @@ -1992,7 +1992,7 @@ _pmap_enter(struct pmap *pm, vaddr_t va, idx = l3pte_index(va); ptep = &l3[idx]; /* as PTE */ opte = *ptep; - need_sync_icache = (prot & VM_PROT_EXECUTE); + need_sync_icache = (prot & VM_PROT_EXECUTE) && !efirt_p; /* for lock ordering for old page and new page */ pps[0] = pp;