Modify _spinlock_lock

This commit is contained in:
songyanguang 2024-12-25 19:37:39 +08:00
parent e20ff7483c
commit a39ab68b4c
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ Modification:
.func _spinlock_lock .func _spinlock_lock
_spinlock_lock: _spinlock_lock:
mv s0, a0 mv s0, a0
li a0, 0 # cpu_get_current call cpu_get_current
mv a1, a0 mv a1, a0
mv a0, s0 mv a0, s0
li a2, UNLOCKED li a2, UNLOCKED
@ -76,7 +76,7 @@ _spinlock_lock:
.func _spinlock_unlock .func _spinlock_unlock
_spinlock_unlock: _spinlock_unlock:
mv s0, a0 mv s0, a0
li a0, 0 # cpu_get_current call cpu_get_current
mv a1, a0 mv a1, a0
mv a0, s0 mv a0, s0
li a2, UNLOCKED li a2, UNLOCKED