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 In pmap_fault_fixup re-instate the TLB fl...



details:   https://anonhg.NetBSD.org/src/rev/917cdabeb821
branches:  trunk
changeset: 333591:917cdabeb821
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 10 14:33:00 2014 +0000

description:
In pmap_fault_fixup re-instate the TLB flush for the shared L1 case that
occurs for non-ARM_MMU_EXTENDED kernels.

This fixes rump/rumpkern/t_sp:stress_killer on rpi which is currently
non-ARM_MMU_EXTENDED

diffstat:

 sys/arch/arm/arm32/pmap.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r d04a04ac1f00 -r 917cdabeb821 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Nov 10 09:59:33 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Mon Nov 10 14:33:00 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.312 2014/11/08 08:01:34 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.313 2014/11/10 14:33:00 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -215,7 +215,7 @@
 
 #include <arm/locore.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.312 2014/11/08 08:01:34 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.313 2014/11/10 14:33:00 skrll Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -4661,6 +4661,12 @@
 #endif
 #endif
 
+#ifndef ARM_MMU_EXTENDED
+       /* Flush the TLB in the shared L1 case - see comment above */
+       pmap_tlb_flush_SE(pm, va,
+           (ftype & VM_PROT_EXECUTE) ? PVF_EXEC | PVF_REF : PVF_REF);
+#endif
+
        rv = 1;
 
 out:



Home | Main Index | Thread Index | Old Index