From 2e9921c5c3a28ec5d6733c1794d7f92bd24b1104 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 23 Jan 2022 01:13:32 -0700 Subject: Free threads from memory after finishing --- src/boot.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/boot.S') 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: -- cgit v1.2.1