Author: nwhitehorn
Date: Sat Dec 12 02:31:16 2009
New Revision: 200426
URL: http://svn.freebsd.org/changeset/base/200426

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

Modified:
  stable/8/sys/powerpc/aim/machdep.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/powerpc/aim/machdep.c
==============================================================================
--- stable/8/sys/powerpc/aim/machdep.c  Sat Dec 12 02:19:41 2009        
(r200425)
+++ stable/8/sys/powerpc/aim/machdep.c  Sat Dec 12 02:31:16 2009        
(r200426)
@@ -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 &&
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to