Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Rename some auto variables which might ...



details:   https://anonhg.NetBSD.org/src/rev/e2ea3dc41cbb
branches:  trunk
changeset: 536121:e2ea3dc41cbb
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Sep 08 05:35:42 2002 +0000

description:
Rename some auto variables which might cause misleadings.

diffstat:

 sys/arch/sparc/sparc/pmap.c |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (80 lines):

diff -r 7e5bbab76548 -r e2ea3dc41cbb sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Sun Sep 08 03:59:02 2002 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Sun Sep 08 05:35:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.211 2002/09/07 18:51:05 tsutsui Exp $ */
+/*     $NetBSD: pmap.c,v 1.212 2002/09/08 05:35:42 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -5371,7 +5371,7 @@
                }
 
                if ((tpte & PG_TYPE) == PG_OBMEM) {
-                       struct pvlist *pv;
+                       struct pvlist *opv;
                        u_int pfn;
 
                        /*
@@ -5381,8 +5381,8 @@
                         */
 
                        pfn = tpte & PG_PFNUM;
-                       if ((pv = pvhead(pfn)) != NULL)
-                               pv_unlink4_4c(pv, pm, va);
+                       if ((opv = pvhead(pfn)) != NULL)
+                               pv_unlink4_4c(opv, pm, va);
                        if ((tpte & PG_NC) == 0) {
                                setcontext4(0); /* ??? */
                                cache_flush_page((int)va);
@@ -5587,10 +5587,10 @@
                                curproc->p_comm, curproc->p_pid, va);
 #endif
                        if ((tpte & PG_TYPE) == PG_OBMEM) {
-                               struct pvlist *pv;
+                               struct pvlist *opv;
                                u_int pfn = tpte & PG_PFNUM;
-                               if ((pv = pvhead(pfn)) != NULL)
-                                       pv_unlink4_4c(pv, pm, va);
+                               if ((opv = pvhead(pfn)) != NULL)
+                                       pv_unlink4_4c(opv, pm, va);
                                if (doflush && (tpte & PG_NC) == 0)
                                        cache_flush_page((int)va);
                        }
@@ -5956,7 +5956,7 @@
                }
 
                if ((tpte & SRMMU_PGTYPE) == PG_SUN4M_OBMEM) {
-                       struct pvlist *pv;
+                       struct pvlist *opv;
                        u_int pfn = (tpte & SRMMU_PPNMASK) >> SRMMU_PPNSHIFT;
 #ifdef DEBUG
 printf("pmap_enk4m: changing existing va=>pa entry: va 0x%lx, pteproto 0x%x, "
@@ -5967,8 +5967,8 @@
                         * If old pa was managed, remove from pvlist.
                         * If old page was cached, flush cache.
                         */
-                       if ((pv = pvhead(pfn)) != NULL)
-                               pv_unlink4m(pv, pm, va);
+                       if ((opv = pvhead(pfn)) != NULL)
+                               pv_unlink4m(opv, pm, va);
                        if (tpte & SRMMU_PG_C) {
                                setcontext4m(0);        /* ??? */
                                cache_flush_page((int)va);
@@ -6153,12 +6153,12 @@
                                        (int)va, tpte, pteproto);
 #endif
                        if ((tpte & SRMMU_PGTYPE) == PG_SUN4M_OBMEM) {
-                               struct pvlist *pv;
+                               struct pvlist *opv;
                                u_int pfn =
                                    (tpte & SRMMU_PPNMASK) >> SRMMU_PPNSHIFT;
-                               if ((pv = pvhead(pfn)) != NULL) {
-                                       pv->pv_flags |= MR4M(tpte);
-                                       pv_unlink4m(pv, pm, va);
+                               if ((opv = pvhead(pfn)) != NULL) {
+                                       opv->pv_flags |= MR4M(tpte);
+                                       pv_unlink4m(opv, pm, va);
                                }
                                if (pm->pm_ctx && (tpte & SRMMU_PG_C))
                                        cache_flush_page((int)va);



Home | Main Index | Thread Index | Old Index