aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-21 14:24:03 -0700
committerChristian Cunningham <cc@localhost>2022-03-21 14:24:03 -0700
commite0942a769925bae81c2355e9a98f577cc6763930 (patch)
tree232f3fca9f7181941cafe9d0070b09e795458124 /src/exceptions
parentc8a4c6098d5a395fff905b6deb5742e57865d660 (diff)
Semaphore Schedule on Special Case
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