aboutsummaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
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;