diff options
author | Christian Cunningham <cc@localhost> | 2022-02-01 21:06:42 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-01 21:06:42 -0700 |
commit | f4f23afb28268570d0da7f70bda6d2bcf760f839 (patch) | |
tree | 022572aead04205faca0972ac7ce441c4cc675d4 | |
parent | 7d3884b5cfc282dbdfe5d9a22d8b2b343280b8af (diff) |
Added SYSCALL number
-rw-r--r-- | include/cpu.h | 7 | ||||
-rw-r--r-- | src/sys/core.c | 5 |
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) |