summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/pseries
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/pseries')
-rw-r--r--sys/powerpc/pseries/mmu_phyp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/powerpc/pseries/mmu_phyp.c b/sys/powerpc/pseries/mmu_phyp.c
index c9d06e3..5f7db69 100644
--- a/sys/powerpc/pseries/mmu_phyp.c
+++ b/sys/powerpc/pseries/mmu_phyp.c
@@ -299,7 +299,10 @@ mphyp_pte_spillable_ident(u_int ptegidx, struct lpte *to_evict)
}
}
- phyp_pft_hcall(H_READ, 0, slot, 0, 0, &to_evict->pte_hi,
+ if (k == -1)
+ return (k);
+
+ phyp_pft_hcall(H_READ, 0, k, 0, 0, &to_evict->pte_hi,
&to_evict->pte_lo, &junk);
return (k);
}
OpenPOWER on IntegriCloud