aboutsummaryrefslogtreecommitdiff
path: root/include/sys
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 /include/sys
parent9c0cb4e1f7df02f24751833b384963917bbf2360 (diff)
Added SVC call for clean stack
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/schedule.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sys/schedule.h b/include/sys/schedule.h
index d5f3519..53475de 100644
--- a/include/sys/schedule.h
+++ b/include/sys/schedule.h
@@ -15,10 +15,15 @@ enum ThreadStatus {
THREAD_SERROR = 4, // Stack Error
};
+struct RStack {
+ void* sp;
+ unsigned long idx;
+};
+
struct Thread {
void* pc;
void* sp; // Store r0-r12,lr on stack
- void* sp_base;
+ unsigned long sp_base;
void* mptr;
unsigned long pid;
unsigned char priority;