Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 PTE_SYNC before TLB flush and no need to ...



details:   https://anonhg.NetBSD.org/src/rev/45e421045566
branches:  trunk
changeset: 1008623:45e421045566
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 29 09:20:43 2020 +0000

description:
PTE_SYNC before TLB flush and no need to PTE_SYNC after an unmap.

diffstat:

 sys/arch/arm/arm32/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 0b855800706a -r 45e421045566 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Mar 29 09:10:26 2020 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Mar 29 09:20:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.401 2020/03/29 09:10:26 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.402 2020/03/29 09:20:43 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -198,7 +198,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.401 2020/03/29 09:10:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.402 2020/03/29 09:20:43 skrll Exp $");
 
 #include <sys/atomic.h>
 #include <sys/param.h>
@@ -2722,9 +2722,10 @@
                 * Unmap the page(s).
                 */
                l2pte_reset(ptep + j);
+               PTE_SYNC(ptep + j);
+
                pmap_tlb_flush_SE(kpm, dstp + i, PVF_REF | PVF_EXEC);
        }
-       PTE_SYNC_RANGE(ptep, way_size / L2_S_SIZE);
 
        md->pvh_attrs |= PVF_EXEC;
        PMAPCOUNT(exec_synced);



Home | Main Index | Thread Index | Old Index