Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Re-reading the PA2.0 Cache Move-In rules ...



details:   https://anonhg.NetBSD.org/src/rev/a4187d26eb85
branches:  trunk
changeset: 366801:a4187d26eb85
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jun 16 06:25:42 2022 +0000

description:
Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to
purge the translations from the TLBs in pmap_procwr.

PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN and setstepN test cases

diffstat:

 sys/arch/hppa/hppa/pmap.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 38f59c927fba -r a4187d26eb85 sys/arch/hppa/hppa/pmap.c
--- a/sys/arch/hppa/hppa/pmap.c Wed Jun 15 21:31:19 2022 +0000
+++ b/sys/arch/hppa/hppa/pmap.c Thu Jun 16 06:25:42 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.119 2022/06/09 16:41:25 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.120 2022/06/16 06:25:42 skrll Exp $ */
 
 /*-
  * Copyright (c) 2001, 2002, 2020 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2022/06/09 16:41:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.120 2022/06/16 06:25:42 skrll Exp $");
 
 #include "opt_cputype.h"
 
@@ -1873,10 +1873,13 @@
 void
 pmap_procwr(struct proc *p, vaddr_t va, size_t len)
 {
-       pmap_t pmap = p->p_vmspace->vm_map.pmap;
+       const pmap_t pmap = p->p_vmspace->vm_map.pmap;
+       const pa_space_t space = pmap->pm_space;
 
-       fdcache(pmap->pm_space, va, len);
-       ficache(pmap->pm_space, va, len);
+       fdcache(space, va, len);
+       ficache(space, va, len);
+       pdtlb(space, va);
+       pitlb(space, va);
 }
 
 static inline void



Home | Main Index | Thread Index | Old Index