diff options
author | Christian Cunningham <cc@localhost> | 2022-01-23 01:13:32 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-23 01:13:32 -0700 |
commit | 2e9921c5c3a28ec5d6733c1794d7f92bd24b1104 (patch) | |
tree | a2e6a22fdedf0c7618ff53c91c6b849e5b18d2b3 /src/boot.S | |
parent | 603b795d7978b7ac53e458f9ab5ec7d73a55c3a5 (diff) |
Free threads from memory after finishing
Diffstat (limited to 'src/boot.S')
-rw-r--r-- | src/boot.S | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |