diff options
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/atomic.h | 10 |
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) |