Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx Tiny cosmetic fix for previous. No f...



details:   https://anonhg.NetBSD.org/src/rev/b1035dd85ec3
branches:  trunk
changeset: 1014010:b1035dd85ec3
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Sep 10 04:36:24 2020 +0000

description:
Tiny cosmetic fix for previous. No functional changes.

diffstat:

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

diffs (37 lines):

diff -r a0487c5a3c5e -r b1035dd85ec3 sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c    Thu Sep 10 04:31:55 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c    Thu Sep 10 04:36:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.94 2020/09/10 04:31:55 rin Exp $    */
+/*     $NetBSD: pmap.c,v 1.95 2020/09/10 04:36:24 rin Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.94 2020/09/10 04:31:55 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.95 2020/09/10 04:36:24 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1160,9 +1160,9 @@
 void
 pmap_procwr(struct proc *p, vaddr_t va, size_t len)
 {
+       struct pmap *pm = p->p_vmspace->vm_map.pmap;
 
        if (__predict_true(p == curproc)) {
-               struct pmap *pm = p->p_vmspace->vm_map.pmap;
                int msr, ctx, opid;
 
                /*
@@ -1203,7 +1203,6 @@
                        : "=&r" (msr), "=&r" (opid)
                        : "r" (ctx), "r" (va), "r" (len), "r" (CACHELINESIZE));
        } else {
-               struct pmap *pm = p->p_vmspace->vm_map.pmap;
                paddr_t pa;
                vaddr_t tva, eva;
                int tlen;



Home | Main Index | Thread Index | Old Index