aboutsummaryrefslogtreecommitdiff
path: root/src/sys/schedule.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-22 23:18:22 -0700
committerChristian Cunningham <cc@localhost>2022-01-22 23:18:22 -0700
commit3ace36ab03f40db05a7876013b7d814a3e5ca171 (patch)
treea3961e767c4c6672134bac263e72c4047b45fef1 /src/sys/schedule.S
parent9c0cb4e1f7df02f24751833b384963917bbf2360 (diff)
Added SVC call for clean stack
Diffstat (limited to 'src/sys/schedule.S')
-rw-r--r--src/sys/schedule.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/schedule.S b/src/sys/schedule.S
index a4c07c4..8f8ae52 100644
--- a/src/sys/schedule.S
+++ b/src/sys/schedule.S
@@ -58,6 +58,8 @@ cleanup:
ldr r1, [r0, #0]
add r1, #1
str r1, [r0, #0]
+ // cleanup stack
+ svc #3
// usrloop -> rthread
ldr r2, =usrloopthread
str r2, [r3, #0]