Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips in pmap_extract(), detect unmapped users ...
details: https://anonhg.NetBSD.org/src/rev/4b3c6cb7570d
branches: trunk
changeset: 516887:4b3c6cb7570d
user: chs <chs%NetBSD.org@localhost>
date: Thu Nov 01 07:37:36 2001 +0000
description:
in pmap_extract(), detect unmapped users addresses too.
diffstat:
sys/arch/mips/mips/pmap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 0f632e07dbf5 -r 4b3c6cb7570d sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Thu Nov 01 07:31:22 2001 +0000
+++ b/sys/arch/mips/mips/pmap.c Thu Nov 01 07:37:36 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.135 2001/10/27 05:44:45 shin Exp $ */
+/* $NetBSD: pmap.c,v 1.136 2001/11/01 07:37:36 chs Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.135 2001/10/27 05:44:45 shin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.136 2001/11/01 07:37:36 chs Exp $");
/*
* Manages physical address maps.
@@ -1464,15 +1464,15 @@
#endif
if (pmap == pmap_kernel()) {
pte = kvtopte(va);
- if (!mips_pg_v(pte->pt_entry)) {
- return (FALSE);
- }
} else {
if (!(pte = pmap_segmap(pmap, va))) {
return (FALSE);
}
pte += (va >> PGSHIFT) & (NPTEPG - 1);
}
+ if (!mips_pg_v(pte->pt_entry)) {
+ return (FALSE);
+ }
pa = mips_tlbpfn_to_paddr(pte->pt_entry) | (va & PGOFSET);
if (pap != NULL) {
*pap = pa;
Home |
Main Index |
Thread Index |
Old Index