summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1998-12-08 19:49:38 +0000
committermickey <mickey@openbsd.org>1998-12-08 19:49:38 +0000
commit0775adfd8f2405155fc6224f59f1263d786d2053 (patch)
tree40bb3f15ff664c7ae55f8f8f3ac431154aa1e738
parentdoc -z pax option; d (diff)
downloadwireguard-openbsd-0775adfd8f2405155fc6224f59f1263d786d2053.tar.xz
wireguard-openbsd-0775adfd8f2405155fc6224f59f1263d786d2053.zip
fix kvtop() according to the recent changes of mapping IO space equally
-rw-r--r--sys/arch/hppa/hppa/pmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index f85e7ba9798..a7e568dc679 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.6 1998/12/05 15:53:53 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.7 1998/12/08 19:49:38 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -1544,6 +1544,8 @@ kvtop(va)
{
if ((vm_offset_t)va < virtual_avail)
return (int)va;
+ else if ((vm_offset_t)va >= HPPA_IOBEGIN)
+ return (int)va;
else
return (int)pmap_extract(pmap_kernel(), (vm_offset_t)va);
}