summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/atomic.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2002-09-19 04:39:59 +0000
committergrehan <grehan@FreeBSD.org>2002-09-19 04:39:59 +0000
commit4e75b6dbdf8a6d30bbdd011481eb551ca8db71f8 (patch)
tree0a5d7177d105ff9b0cfa038f19c9bbf0b5d91a1e /sys/powerpc/include/atomic.h
parentd85d43791839fb16033341ebfbbf649bf9dc8b3e (diff)
downloadFreeBSD-src-4e75b6dbdf8a6d30bbdd011481eb551ca8db71f8.zip
FreeBSD-src-4e75b6dbdf8a6d30bbdd011481eb551ca8db71f8.tar.gz
Fixed branch labels
Approved by: benno
Diffstat (limited to 'sys/powerpc/include/atomic.h')
-rw-r--r--sys/powerpc/include/atomic.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/powerpc/include/atomic.h b/sys/powerpc/include/atomic.h
index 194b6c1..3e1c0fb 100644
--- a/sys/powerpc/include/atomic.h
+++ b/sys/powerpc/include/atomic.h
@@ -57,7 +57,7 @@ atomic_set_32(volatile u_int32_t *p, u_int32_t v)
"1:\tlwarx %0, 0, %1\n\t" /* load old value */
"or %0, %0, %2\n\t" /* calculate new value */
"stwcx. %0, 0, %1\n\t" /* attempt to store */
- "bne- 1\n\t" /* spin if failed */
+ "bne- 1b\n\t" /* spin if failed */
"eieio\n" /* drain to memory */
: "=&r" (temp)
: "r" (p), "r" (v)
@@ -73,7 +73,7 @@ atomic_clear_32(volatile u_int32_t *p, u_int32_t v)
"1:\tlwarx %0, 0, %1\n\t" /* load old value */
"andc %0, %0, %2\n\t" /* calculate new value */
"stwcx. %0, 0, %1\n\t" /* attempt to store */
- "bne- 1\n\t" /* spin if failed */
+ "bne- 1b\n\t" /* spin if failed */
"eieio\n" /* drain to memory */
: "=&r" (temp)
: "r" (p), "r" (v)
@@ -89,7 +89,7 @@ atomic_add_32(volatile u_int32_t *p, u_int32_t v)
"1:\tlwarx %0, 0, %1\n\t" /* load old value */
"add %0, %0, %2\n\t" /* calculate new value */
"stwcx. %0, 0, %1\n\t" /* attempt to store */
- "bne- 1\n\t" /* spin if failed */
+ "bne- 1b\n\t" /* spin if failed */
"eieio\n" /* Old McDonald had a farm */
: "=&r" (temp)
: "r" (p), "r" (v)
@@ -105,7 +105,7 @@ atomic_subtract_32(volatile u_int32_t *p, u_int32_t v)
"1:\tlwarx %0, 0, %1\n\t" /* load old value */
"sub %0, %2, %0\n\t" /* calculate new value */
"stwcx. %0, 0, %1\n\t" /* attempt to store */
- "bne- 1\n\t" /* spin if failed */
+ "bne- 1b\n\t" /* spin if failed */
"eieio\n" /* drain to memory */
: "=&r" (temp)
: "r" (p), "r" (v)
@@ -122,7 +122,7 @@ atomic_readandclear_32(volatile u_int32_t *addr)
"1:\tlwarx %0, 0, %2\n\t" /* load old value */
"li %1, 0\n\t" /* load new value */
"stwcx. %1, 0, %2\n\t" /* attempt to store */
- "bne- 1\n\t" /* spin if failed */
+ "bne- 1b\n\t" /* spin if failed */
"eieio\n" /* drain to memory */
: "=&r"(result), "=&r"(temp)
: "r"(addr)
OpenPOWER on IntegriCloud