Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea Fix variable shadowing warnings by rena...



details:   https://anonhg.NetBSD.org/src/rev/ecbd25013f5e
branches:  trunk
changeset: 581520:ecbd25013f5e
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 02 09:46:09 2005 +0000

description:
Fix variable shadowing warnings by renaming the innermost variables.

diffstat:

 sys/arch/powerpc/oea/oea_machdep.c |  36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diffs (68 lines):

diff -r 26f2b9efe233 -r ecbd25013f5e sys/arch/powerpc/oea/oea_machdep.c
--- a/sys/arch/powerpc/oea/oea_machdep.c        Thu Jun 02 09:42:57 2005 +0000
+++ b/sys/arch/powerpc/oea/oea_machdep.c        Thu Jun 02 09:46:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oea_machdep.c,v 1.21 2005/04/25 15:02:06 lukem Exp $   */
+/*     $NetBSD: oea_machdep.c,v 1.22 2005/06/02 09:46:09 he Exp $      */
 
 /*
  * Copyright (C) 2002 Matt Thomas
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.21 2005/04/25 15:02:06 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.22 2005/06/02 09:46:09 he Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -589,33 +589,33 @@
        mem_regions(&allmem, &availmem);
        if (cpuvers == MPC601) {
                for (mp = allmem; mp->size; mp++) {
-                       paddr_t pa = mp->start & 0xff800000;
+                       paddr_t paddr = mp->start & 0xff800000;
                        paddr_t end = mp->start + mp->size;
 
                        do {
-                               u_int i = pa >> 23;
+                               u_int ix = paddr >> 23;
 
-                               battable[i].batl =
-                                   BATL601(pa, BAT601_BSM_8M, BAT601_V);
-                               battable[i].batu =
-                                   BATU601(pa, BAT601_M, BAT601_Ku, BAT601_PP_NONE);
-                               pa += (1 << 23);
-                       } while (pa < end);
+                               battable[ix].batl =
+                                   BATL601(paddr, BAT601_BSM_8M, BAT601_V);
+                               battable[ix].batu =
+                                   BATU601(paddr, BAT601_M, BAT601_Ku, BAT601_PP_NONE);
+                               paddr += (1 << 23);
+                       } while (paddr < end);
                }
        } else {
                for (mp = allmem; mp->size; mp++) {
-                       paddr_t pa = mp->start & 0xf0000000;
+                       paddr_t paddr = mp->start & 0xf0000000;
                        paddr_t end = mp->start + mp->size;
 
                        do {
-                               u_int i = pa >> 28;
+                               u_int ix = paddr >> 28;
 
-                               battable[i].batl =
-                                   BATL(pa, BAT_M, BAT_PP_RW);
-                               battable[i].batu =
-                                   BATU(pa, BAT_BL_256M, BAT_Vs);
-                               pa += SEGMENT_LENGTH;
-                       } while (pa < end);
+                               battable[ix].batl =
+                                   BATL(paddr, BAT_M, BAT_PP_RW);
+                               battable[ix].batu =
+                                   BATU(paddr, BAT_BL_256M, BAT_Vs);
+                               paddr += SEGMENT_LENGTH;
+                       } while (paddr < end);
                }
        }
 }



Home | Main Index | Thread Index | Old Index