aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/svc.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exceptions/svc.S b/src/exceptions/svc.S
index d14344b..86f61c0 100644
--- a/src/exceptions/svc.S
+++ b/src/exceptions/svc.S
@@ -98,6 +98,8 @@ svc_000007: // Semaphore increase
teq r2, #0
bne 1b
dmb
+ cmp r1, #1
+ bne svc_exit
bl sched_semaphore_resurrect
ldmfd sp!, {r0-r12,lr}
b schedule