summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-12-12 17:30:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-12-12 17:30:09 +0000
commit9cb7809ee9ceca24682609822989019beb7a60df (patch)
treec27cdde57911b319af46ef114b41fbb59dd25523 /sys
parent466e2148e6c96d1ef2c0d9d28d5625ce32ae5252 (diff)
Don't return TRUE from pmap_extract if the pte is not valid.
From art@ as munged by me.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/m68k/m68k/pmap_motorola.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m68k/m68k/pmap_motorola.c b/sys/arch/m68k/m68k/pmap_motorola.c
index fddb974632c..1f3d0eef4db 100644
--- a/sys/arch/m68k/m68k/pmap_motorola.c
+++ b/sys/arch/m68k/m68k/pmap_motorola.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_motorola.c,v 1.7 2001/12/11 08:11:33 miod Exp $ */
+/* $OpenBSD: pmap_motorola.c,v 1.8 2001/12/12 17:30:08 millert Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -1696,7 +1696,7 @@ pmap_extract(pmap, va, pap)
if (pmap_ste_v(pmap, va)) {
pte = *(u_int *)pmap_pte(pmap, va);
- if (pte) {
+ if (pmap_pte_v(&pte)) {
pa = (pte & PG_FRAME) | (va & ~PG_FRAME);
if (pap != NULL)
*pap = pa;