summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-12-13 19:14:42 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-12-13 19:14:42 +0000
commit1d032bd709683afbb045a545be408858ef91466d (patch)
treec3f9760b999b5b6e331836e532c54fa3b195104d /sys
parent5f0ec9481fef3e25f884d7f570b873dcca6ada76 (diff)
Fix for pmap extract from art.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c
index 8e6e5181d8d..51d330b01dd 100644
--- a/sys/arch/powerpc/powerpc/pmap.c
+++ b/sys/arch/powerpc/powerpc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.51 2001/11/29 16:43:42 drahn Exp $ */
+/* $OpenBSD: pmap.c,v 1.52 2001/12/13 19:14:41 drahn Exp $ */
/* $NetBSD: pmap.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */
/*
@@ -1441,7 +1441,7 @@ pmap_extract(pm, va, pap)
int s = splimp();
boolean_t ret;
- if (!(ptp = pte_find(pm, va))) {
+ if (!(ptp = pte_find(pm, va)) || (ptp->pte_hi & PTE_VALID) == 0) {
/* return address 0 if not mapped??? */
ret = FALSE;
if (pm == pmap_kernel() && va < 0x80000000){