aboutsummaryrefslogtreecommitdiff
path: root/src/boot.S
diff options
context:
space:
mode:
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: