summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/arm64/arm64/swtch.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm64/arm64/swtch.S b/sys/arm64/arm64/swtch.S
index bc2e521..1f20b3d 100644
--- a/sys/arm64/arm64/swtch.S
+++ b/sys/arm64/arm64/swtch.S
@@ -166,9 +166,8 @@ ENTRY(cpu_switch)
*/
str x2, [x0, #TD_LOCK]
#if defined(SCHED_ULE) && defined(SMP)
- /* Read the value in blocked_lock */
- ldr x0, =_C_LABEL(blocked_lock)
- ldr x2, [x0]
+ /* Spin if TD_LOCK points to a blocked_lock */
+ ldr x2, =_C_LABEL(blocked_lock)
1:
ldar x3, [x1, #TD_LOCK]
cmp x3, x2
OpenPOWER on IntegriCloud