summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index a6e227a..e26bdc5 100644
--- a/sys/ia64/ia64/pmap.c
+++ b/sys/ia64/ia64/pmap.c
@@ -2188,12 +2188,16 @@ int
pmap_mincore(pmap_t pmap, vm_offset_t addr)
{
pmap_t oldpmap;
- struct ia64_lpte *pte;
+ struct ia64_lpte *pte, tpte;
int val = 0;
PMAP_LOCK(pmap);
oldpmap = pmap_install(pmap);
pte = pmap_find_vhpt(addr);
+ if (pte != NULL) {
+ tpte = *pte;
+ pte = &tpte;
+ }
pmap_install(oldpmap);
PMAP_UNLOCK(pmap);
OpenPOWER on IntegriCloud