svn commit: r200083 - head/sys/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Dec 3 20:55:10 UTC 2009


Author: nwhitehorn
Date: Thu Dec  3 20:55:09 2009
New Revision: 200083
URL: http://svn.freebsd.org/changeset/base/200083

Log:
  The first argument of dcbz interprets r0 as a literal zero, not the second.
  This worked before by accident.
  
  MFC after:	1 week

Modified:
  head/sys/powerpc/aim/machdep.c

Modified: head/sys/powerpc/aim/machdep.c
==============================================================================
--- head/sys/powerpc/aim/machdep.c	Thu Dec  3 20:16:59 2009	(r200082)
+++ head/sys/powerpc/aim/machdep.c	Thu Dec  3 20:55:09 2009	(r200083)
@@ -374,7 +374,7 @@ powerpc_init(u_int startkernel, u_int en
 	for (cacheline_size = 0; cacheline_size < 0x100; cacheline_size++)
 		cache_check[cacheline_size] = 0xff;
 
-	__asm __volatile("dcbz %0,0":: "r" (cache_check) : "memory");
+	__asm __volatile("dcbz 0,%0":: "r" (cache_check) : "memory");
 
 	/* Find the first byte dcbz did not zero to get the cache line size */
 	for (cacheline_size = 0; cacheline_size < 0x100 &&


More information about the svn-src-all mailing list