diff options
author | Christian Cunningham <cc@localhost> | 2022-01-03 20:10:10 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-03 20:10:10 -0800 |
commit | 1b180d2f15e9b726e6e9dde5601f41fa48c1c044 (patch) | |
tree | 837de56031b3c26b62e8773d2bc671b38da12e53 /src/sys/schedule.h | |
parent | 3448a072fab683b97c93922b2d150e530a22b5a3 (diff) |
Ensured Aligned Mutexes
Diffstat (limited to 'src/sys/schedule.h')
-rw-r--r-- | src/sys/schedule.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/sys/schedule.h b/src/sys/schedule.h deleted file mode 100644 index c8e938d..0000000 --- a/src/sys/schedule.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef SYS_SCHEDULE_H -#define SYS_SCHEDULE_H - -#define STACK_SIZE 0x1000 -struct TaskMemory { - unsigned long reg[16]; - unsigned char stack[STACK_SIZE]; -}; - -struct Task { - unsigned char priority; - void (*task)(void); -}; - -#ifdef FLAT -struct Scheduler { - struct Task** tasks; -}; -#elseif LL -#include "../lib/ll.h" -struct Scheduler { - struct LL* tasks; -}; -#else -#include "../lib/q.h" -struct Scheduler { - struct Q_base* tasks; -}; -#endif - -void add_fxn(void (*task)(void), unsigned char priority); -unsigned int get_task_length(void); -void execute_task(void); - -#endif |