Fixed branch labels
Approved by: benno
This commit is contained in:
parent
4eae112d86
commit
6e1073f023
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user