aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-11 13:41:49 -0800
committerChristian Cunningham <cc@localhost>2022-03-11 13:41:49 -0800
commit0b812480a8b81607802cdceb273b69680cd5082c (patch)
tree4bff9ed959dd91fee4d647c8c1e12f84f78ca777 /src/exceptions
parentad9e577e8b2f6431d48a6a64fd95aff432e48441 (diff)
Statically Allocated Scheduling
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/svc.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exceptions/svc.S b/src/exceptions/svc.S
index 1b0cc1f..3fb534e 100644
--- a/src/exceptions/svc.S
+++ b/src/exceptions/svc.S
@@ -39,7 +39,7 @@ svc_000003: // Free Thread in Table
ldr r1, [r2, #0x1c] // thread offset
mov r0, #0
ldr r2, =thread_table
- add r2, r1
+ add r2, r1, r2
str r0, [r2]
b svc_exit
svc_000004: // Lock Lock (usr_r0 = struct Lock*)