Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 04:41:18 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294760 - head/sys/powerpc/booke
Message-ID:  <201601260441.u0Q4fIUo071504@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601260441.u0Q4fIUo071504>