aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cpu.h7
-rw-r--r--src/sys/core.c5
2 files changed, 4 insertions, 8 deletions
diff --git a/include/cpu.h b/include/cpu.h
index bac80e8..0f4993f 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -95,8 +95,9 @@ __attribute__((always_inline)) static inline unsigned long long get_sys_time(voi
return t.llv;
}
-#define SYS_YIELD 0
-#define SYS_TIME 1
-#define SYS_SCHED 2
+#define SYS_YIELD 0
+#define SYS_TIME 1
+#define SYS_SCHED 2
+#define SYS_FREE_STACK 3
#endif
diff --git a/src/sys/core.c b/src/sys/core.c
index 83cd563..b29412f 100644
--- a/src/sys/core.c
+++ b/src/sys/core.c
@@ -60,10 +60,6 @@ void sysinit(void)
// Start Scheduler
init_scheduler();
- //// // Enable IRQ & FIQ
- //// enableirq();
- //// enablefiq();
-
add_thread(testlocal, 0, 0);
add_thread(testlocal, 0, 1);
add_thread(testlocal, 0, 1);
@@ -74,7 +70,6 @@ void sysinit(void)
void testlocal(void)
{
- draw_stacks();
}
void testnew(void)