diff options
author | Christian Cunningham <cc@localhost> | 2022-01-21 13:01:58 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-21 13:01:58 -0700 |
commit | 367e20fa0c6f15e60d943cf222d41414fffd2318 (patch) | |
tree | 0ebd3266233eb49afeb42d84d97b9a7c93ea60eb /include | |
parent | ed7b9318bc9ac285250b117f87f47fe7f84af51b (diff) |
Added scheduling logic
Diffstat (limited to 'include')
-rw-r--r-- | include/globals.h | 1 | ||||
-rw-r--r-- | include/sys/schedule.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/globals.h b/include/globals.h index 16845d5..cf37c06 100644 --- a/include/globals.h +++ b/include/globals.h @@ -20,6 +20,7 @@ extern unsigned long stimel; extern unsigned long stimeh; extern struct Drawer g_Drawer; extern struct Scheduler scheduler; +extern struct Thread usrloopthread; extern unsigned int gwidth, gheight, gpitch, gisrgb; extern unsigned char stacks_table[MAX_THREADS]; #endif diff --git a/include/sys/schedule.h b/include/sys/schedule.h index 90e82dd..c110533 100644 --- a/include/sys/schedule.h +++ b/include/sys/schedule.h @@ -50,7 +50,7 @@ void init_scheduler(void); // void add_thread(void* pc, void* arg, unsigned char priority); /// TODO: ENSURE IRQ/ FIQ entry switches /// to user mode then calls the SVC call -// extern void schedule(void); +extern void schedule(void); // void yield(void); // struct Thread* next_thread(void); |