thermosphere: small spinlock improvements

This commit is contained in:
TuxSH 2020-01-25 16:13:16 +00:00
parent 5473443057
commit 310048a32c

View file

@ -28,6 +28,7 @@
FUNCTION spinlockLock FUNCTION spinlockLock
mov w2, #1 mov w2, #1
sevl sevl
prfm pstl1keep, [x0]
l1: l1:
wfe wfe
l2: l2:
@ -40,6 +41,5 @@ END_FUNCTION
FUNCTION spinlockUnlock FUNCTION spinlockUnlock
stlr wzr, [x0] stlr wzr, [x0]
sev
ret ret
END_FUNCTION END_FUNCTION