svn commit: r294760 - head/sys/powerpc/booke
Justin Hibbits
jhibbits at FreeBSD.org
Tue Jan 26 04:41:19 UTC 2016
Author: jhibbits
Date: Tue Jan 26 04:41:18 2016
New Revision: 294760
URL: https://svnweb.freebsd.org/changeset/base/294760
Log:
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.
Modified:
head/sys/powerpc/booke/pmap.c
Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c Tue Jan 26 03:52:14 2016 (r294759)
+++ head/sys/powerpc/booke/pmap.c Tue Jan 26 04:41:18 2016 (r294760)
@@ -2254,7 +2254,7 @@ mmu_booke_zero_page(mmu_t mmu, vm_page_t
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);
More information about the svn-src-head
mailing list