Modify _spinlock_lock
This commit is contained in:
parent
3154da5ec6
commit
beef098836
|
@ -64,7 +64,7 @@ _spinlock_lock:
|
||||||
li a2, UNLOCKED
|
li a2, UNLOCKED
|
||||||
1:
|
1:
|
||||||
lr.w a3, (a0)
|
lr.w a3, (a0)
|
||||||
beq a3, a1, 1b
|
bne a3, a2, 1b
|
||||||
sc.w a4, a1, (a0)
|
sc.w a4, a1, (a0)
|
||||||
bnez a4, 1b
|
bnez a4, 1b
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in New Issue