diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-12-03 20:55:09 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-12-03 20:55:09 +0000 |
commit | f632a769ede6a685b1b73a32d81e7c4db8705201 (patch) | |
tree | 4af933a53c7e90f5c881eb6a7fcd1231df70deb9 /sys/powerpc/aim/machdep.c | |
parent | 96594145b30d61ad5f3a34f35d16edcbb1cba32e (diff) | |
download | FreeBSD-src-f632a769ede6a685b1b73a32d81e7c4db8705201.zip FreeBSD-src-f632a769ede6a685b1b73a32d81e7c4db8705201.tar.gz |
The first argument of dcbz interprets r0 as a literal zero, not the second.
This worked before by accident.
MFC after: 1 week
Diffstat (limited to 'sys/powerpc/aim/machdep.c')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 7c36543..b2e57b8 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -374,7 +374,7 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp) 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 && |