Revert "Modify _spinlock_lock"

This reverts commit a39ab68b4c.
This commit is contained in:
songyanguang 2024-12-26 09:33:01 +08:00
parent a39ab68b4c
commit 3154da5ec6
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
call cpu_get_current li a0, 0 # 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
call cpu_get_current li a0, 0 # cpu_get_current
mv a1, a0 mv a1, a0
mv a0, s0 mv a0, s0
li a2, UNLOCKED li a2, UNLOCKED