aboutsummaryrefslogtreecommitdiff
path: root/src/boot.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-23 01:13:32 -0700
committerChristian Cunningham <cc@localhost>2022-01-23 01:13:32 -0700
commit2e9921c5c3a28ec5d6733c1794d7f92bd24b1104 (patch)
treea2e6a22fdedf0c7618ff53c91c6b849e5b18d2b3 /src/boot.S
parent603b795d7978b7ac53e458f9ab5ec7d73a55c3a5 (diff)
Free threads from memory after finishing
Diffstat (limited to 'src/boot.S')
-rw-r--r--src/boot.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boot.S b/src/boot.S
index aedc957..e97ddcb 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -155,6 +155,9 @@ svc:
ldr r3, =stacks_table
mov r0, #0
strb r0, [r3, r1]
+ // Free the thread after freeing the stack
+ mov r0, r2
+ bl free
1:
ldmfd sp!, {r0-r12,pc}^
io_halt_prefetch: