diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-08 19:49:39 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-08 19:49:39 +0000 |
commit | e573a29dcaf87b0ae9fc376d0e33be154e591854 (patch) | |
tree | eb68a3604285f4edf7875cfd8228c11e7792ec79 /sys/arch | |
parent | 194d7cb4d7577f539491cbe76479d8ee826a76c5 (diff) |
fix kvtop() according to the recent changes of mapping IO space equally
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/pmap.c | 4 |
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); } |