aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exceptions/svc.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exceptions/svc.S b/src/exceptions/svc.S
index 7c8a9cc..88716db 100644
--- a/src/exceptions/svc.S
+++ b/src/exceptions/svc.S
@@ -64,6 +64,7 @@ svc_000004_delay_mutex: // Wait-queue the current thread
// r0 = struct Lock* m
bl sched_mutex_yield
ldmfd sp!, {r0-r12,lr}
+ sub lr, #4
b schedule
svc_000005: // Release Lock
ldr r0, [sp, #0] // struct Lock* m