diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-01-26 04:41:18 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-01-26 04:41:18 +0000 |
commit | 01e9d5450a8debe8d97b27d46f74625257226a5d (patch) | |
tree | 43e00d5103818ede9b614a8534c5d2eb5ea32849 /sys/powerpc/booke | |
parent | be339e6139e416e9be5acfe81073c53223c51040 (diff) | |
download | FreeBSD-src-01e9d5450a8debe8d97b27d46f74625257226a5d.zip FreeBSD-src-01e9d5450a8debe8d97b27d46f74625257226a5d.tar.gz |
Older Book-E processors (e500v1/e500v2) don't support dcbzl.
The only difference between dcbzl and dcbz is dcbzl operates on native cache
line lengths regardless of L1CSR0[DCBZ32]. Since we don't change the cache line
size, the cacheline_size variable will reflect the used cache line length, and
dcbz will work as expected.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index 550654e..d0712b4 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -2254,7 +2254,7 @@ mmu_booke_zero_page(mmu_t mmu, vm_page_t m) mmu_booke_kenter(mmu, va, VM_PAGE_TO_PHYS(m)); for (off = 0; off < PAGE_SIZE; off += cacheline_size) - __asm __volatile("dcbzl 0,%0" :: "r"(va + off)); + __asm __volatile("dcbz 0,%0" :: "r"(va + off)); mmu_booke_kremove(mmu, va); mtx_unlock(&zero_page_mutex); |