Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 No need to flush icache for EFI RT ...



details:   https://anonhg.NetBSD.org/src/rev/01dcd44ae675
branches:  trunk
changeset: 365180:01dcd44ae675
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Apr 10 10:01:15 2022 +0000

description:
No need to flush icache for EFI RT mappings as bootaa64.efi flushed
the full icache for us.  (Also this avoids traps)

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6bb953064011 -r 01dcd44ae675 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Sun Apr 10 09:50:44 2022 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Sun Apr 10 10:01:15 2022 +0000
@@ -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 <ryo%nerv.org@localhost>
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index