Fix a shadow warning.
This commit is contained in:
parent
4b933e86cb
commit
a4c79ce346
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pmap_motorola.c,v 1.14 2005/04/01 11:59:32 yamt Exp $ */
|
/* $NetBSD: pmap_motorola.c,v 1.15 2005/06/02 14:56:58 tsutsui Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.14 2005/04/01 11:59:32 yamt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.15 2005/06/02 14:56:58 tsutsui Exp $");
|
||||||
|
|
||||||
#include "opt_compat_hpux.h"
|
#include "opt_compat_hpux.h"
|
||||||
|
|
||||||
|
@ -2255,13 +2255,13 @@ pmap_remove_mapping(pmap, va, pte, flags)
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
struct pv_entry *pv;
|
struct pv_entry *pv;
|
||||||
#endif
|
#endif
|
||||||
paddr_t pa;
|
paddr_t ptppa;
|
||||||
|
|
||||||
pa = pmap_pte_pa(pmap_pte(pmap_kernel(), ptpva));
|
ptppa = pmap_pte_pa(pmap_pte(pmap_kernel(), ptpva));
|
||||||
#ifdef DIAGNOSTIC
|
#ifdef DIAGNOSTIC
|
||||||
if (PAGE_IS_MANAGED(pa) == 0)
|
if (PAGE_IS_MANAGED(ptppa) == 0)
|
||||||
panic("pmap_remove_mapping: unmanaged PT page");
|
panic("pmap_remove_mapping: unmanaged PT page");
|
||||||
pv = pa_to_pvh(pa);
|
pv = pa_to_pvh(ptppa);
|
||||||
if (pv->pv_ptste == NULL)
|
if (pv->pv_ptste == NULL)
|
||||||
panic("pmap_remove_mapping: ptste == NULL");
|
panic("pmap_remove_mapping: ptste == NULL");
|
||||||
if (pv->pv_pmap != pmap_kernel() ||
|
if (pv->pv_pmap != pmap_kernel() ||
|
||||||
|
@ -2273,10 +2273,10 @@ pmap_remove_mapping(pmap, va, pte, flags)
|
||||||
#endif
|
#endif
|
||||||
pmap_remove_mapping(pmap_kernel(), ptpva,
|
pmap_remove_mapping(pmap_kernel(), ptpva,
|
||||||
NULL, PRM_TFLUSH|PRM_CFLUSH);
|
NULL, PRM_TFLUSH|PRM_CFLUSH);
|
||||||
uvm_pagefree(PHYS_TO_VM_PAGE(pa));
|
uvm_pagefree(PHYS_TO_VM_PAGE(ptppa));
|
||||||
PMAP_DPRINTF(PDB_REMOVE|PDB_PTPAGE,
|
PMAP_DPRINTF(PDB_REMOVE|PDB_PTPAGE,
|
||||||
("remove: PT page 0x%lx (0x%lx) freed\n",
|
("remove: PT page 0x%lx (0x%lx) freed\n",
|
||||||
ptpva, pa));
|
ptpva, ptppa));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue