From 3ace36ab03f40db05a7876013b7d814a3e5ca171 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 22 Jan 2022 23:18:22 -0700 Subject: Added SVC call for clean stack --- include/sys/schedule.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/sys') 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; -- cgit v1.2.1