Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha UVM never passes us a NULL pmap argumen...
details: https://anonhg.NetBSD.org/src/rev/49edca02e178
branches: trunk
changeset: 512723:49edca02e178
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Jul 15 05:24:20 2001 +0000
description:
UVM never passes us a NULL pmap argument; remove that Mach VM leftover.
diffstat:
sys/arch/alpha/alpha/pmap.c | 23 ++++++-----------------
1 files changed, 6 insertions(+), 17 deletions(-)
diffs (72 lines):
diff -r c27721340301 -r 49edca02e178 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Sun Jul 15 03:09:22 2001 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Sun Jul 15 05:24:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.180 2001/05/26 21:27:02 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.181 2001/07/15 05:24:20 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -154,7 +154,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.180 2001/05/26 21:27:02 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.181 2001/07/15 05:24:20 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1220,8 +1220,6 @@
if (pmapdebug & PDB_FOLLOW)
printf("pmap_destroy(%p)\n", pmap);
#endif
- if (pmap == NULL)
- return;
PMAP_LOCK(pmap);
refs = --pmap->pm_count;
@@ -1262,11 +1260,10 @@
if (pmapdebug & PDB_FOLLOW)
printf("pmap_reference(%p)\n", pmap);
#endif
- if (pmap != NULL) {
- PMAP_LOCK(pmap);
- pmap->pm_count++;
- PMAP_UNLOCK(pmap);
- }
+
+ PMAP_LOCK(pmap);
+ pmap->pm_count++;
+ PMAP_UNLOCK(pmap);
}
/*
@@ -1311,9 +1308,6 @@
printf("pmap_remove(%p, %lx, %lx)\n", pmap, sva, eva);
#endif
- if (pmap == NULL)
- return;
-
/*
* If this is the kernel pmap, we can use a faster method
* for accessing the PTEs (since the PT pages are always
@@ -1554,9 +1548,6 @@
pmap, sva, eva, prot);
#endif
- if (pmap == NULL)
- return;
-
if ((prot & VM_PROT_READ) == VM_PROT_NONE) {
pmap_remove(pmap, sva, eva);
return;
@@ -2078,8 +2069,6 @@
if (pmapdebug & PDB_FOLLOW)
printf("pmap_unwire(%p, %lx)\n", pmap, va);
#endif
- if (pmap == NULL)
- return;
PMAP_LOCK(pmap);
Home |
Main Index |
Thread Index |
Old Index