diff options
author | Christian Cunningham <cc@localhost> | 2022-01-22 23:18:22 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-22 23:18:22 -0700 |
commit | 3ace36ab03f40db05a7876013b7d814a3e5ca171 (patch) | |
tree | a3961e767c4c6672134bac263e72c4047b45fef1 /include/sys | |
parent | 9c0cb4e1f7df02f24751833b384963917bbf2360 (diff) |
Added SVC call for clean stack
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/schedule.h | 7 |
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; |