aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/booke
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2017-11-29 01:26:07 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2017-11-29 01:26:07 +0000
commit3de971a61a817617937e1b23796e299ec1e36c9d (patch)
treebd19bcd507331a119ec321945d557794c9ebd29d /sys/powerpc/booke
parent8e3e3a7ae841ccf6f6ac30a2eeab85df5d7f04bc (diff)
downloadsrc-3de971a61a817617937e1b23796e299ec1e36c9d.tar.gz
src-3de971a61a817617937e1b23796e299ec1e36c9d.zip
Notes
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r--sys/powerpc/booke/pmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index e3002c15868c..2cf14213a919 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -2091,10 +2091,11 @@ static vm_paddr_t
mmu_booke_kextract(mmu_t mmu, vm_offset_t va)
{
tlb_entry_t e;
- vm_paddr_t p;
+ vm_paddr_t p = 0;
int i;
- p = pte_vatopa(mmu, kernel_pmap, va);
+ if (va >= VM_MIN_KERNEL_ADDRESS && va <= VM_MAX_KERNEL_ADDRESS)
+ p = pte_vatopa(mmu, kernel_pmap, va);
if (p == 0) {
/* Check TLB1 mappings */