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 Appease the -Wshadow and -Wcast-qual...



details:   https://anonhg.NetBSD.org/src/rev/8be7de49d8bb
branches:  trunk
changeset: 581620:8be7de49d8bb
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Jun 03 11:42:44 2005 +0000

description:
Appease the -Wshadow and -Wcast-qual gods.

diffstat:

 sys/arch/powerpc/ibm4xx/pmap.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (56 lines):

diff -r 5bc4c8498797 -r 8be7de49d8bb sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c    Fri Jun 03 11:40:25 2005 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c    Fri Jun 03 11:42:44 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.35 2005/04/07 12:01:08 yamt Exp $   */
+/*     $NetBSD: pmap.c,v 1.36 2005/06/03 11:42:44 scw Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.35 2005/04/07 12:01:08 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.36 2005/06/03 11:42:44 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -566,21 +566,21 @@
  *     Object and page must be locked prior to entry.
  */
 void
-vm_page_free1(struct vm_page *mem)
+vm_page_free1(struct vm_page *pg)
 {
 #ifdef DIAGNOSTIC
-       if (mem->flags != (PG_CLEAN|PG_FAKE)) {
-               printf("Freeing invalid page %p\n", mem);
-               printf("pa = %llx\n", (unsigned long long)VM_PAGE_TO_PHYS(mem));
+       if (pg->flags != (PG_CLEAN|PG_FAKE)) {
+               printf("Freeing invalid page %p\n", pg);
+               printf("pa = %llx\n", (unsigned long long)VM_PAGE_TO_PHYS(pg));
 #ifdef DDB
                Debugger();
 #endif
                return;
        }
 #endif
-       mem->flags |= PG_BUSY;
-       mem->wire_count = 0;
-       uvm_pagefree(mem);
+       pg->flags |= PG_BUSY;
+       pg->wire_count = 0;
+       uvm_pagefree(pg);
 }
 #endif
 
@@ -1372,7 +1372,7 @@
         * XXXX We will reserve 0-0x80000000 for va==pa mappings.
         */
        if (ctx != KERNEL_PID || (va & 0x80000000)) {
-               pte = pte_find((struct pmap *)ctxbusy[ctx], va);
+               pte = pte_find((struct pmap *)__UNVOLATILE(ctxbusy[ctx]), va);
                if (pte == NULL) {
                        /* Map unmanaged addresses directly for kernel access */
                        return 1;



Home | Main Index | Thread Index | Old Index