summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-10-27 01:22:54 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-10-27 01:22:54 +0000
commita8bb4a8cf25599c99361469e01f1b10631a51761 (patch)
treeda415e1b157c1ffe66d98d16c92bee30b05270db /sys/arch/hppa
parent09a2b6239cc0c2e3a68f3e4ad01099730a40af3e (diff)
make kvtop() work on page unaligned addresses
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index c56967e868f..696f0f54e00 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.21 1999/09/18 20:05:54 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.22 1999/10/27 01:22:53 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -1361,7 +1361,7 @@ pmap_extract(pmap, va)
printf("pmap_extract(%p, %x)\n", pmap, va);
#endif
- if (!(pv = pmap_find_va(pmap_sid(pmap, va), va)))
+ if (!(pv = pmap_find_va(pmap_sid(pmap, va), va & ~PGOFSET)))
return(0);
else
return tlbptob(pv->pv_tlbpage) + (va & PGOFSET);