aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-21 18:52:25 -0700
committerChristian Cunningham <cc@localhost>2022-01-21 18:52:25 -0700
commit0d551d712c098d6ebb75512340d7503da98361b4 (patch)
treead01fa489a37f70e3dd4e94bd22dc67381e05710 /include
parentc7c1702dc66f5be0f8f07703e2c8e9f5bd8db80d (diff)
Got some scheduling
Diffstat (limited to 'include')
-rw-r--r--include/cpu/irq.h2
-rw-r--r--include/sys/schedule.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/cpu/irq.h b/include/cpu/irq.h
index 807df46..03402ff 100644
--- a/include/cpu/irq.h
+++ b/include/cpu/irq.h
@@ -19,6 +19,6 @@ static inline void disablefiq(void)
}
void c_irq_handler(void);
-void c_fiq_handler(void);
+unsigned long c_fiq_handler(void);
#endif
diff --git a/include/sys/schedule.h b/include/sys/schedule.h
index 4677aec..d5f3519 100644
--- a/include/sys/schedule.h
+++ b/include/sys/schedule.h
@@ -49,10 +49,11 @@ struct Scheduler {
void init_scheduler(void);
void add_thread(void* pc, void* arg, unsigned char priority);
void uart_scheduler(void);
+struct Thread* next_thread(void);
/// TODO: ENSURE IRQ/ FIQ entry switches
/// to user mode then calls the SVC call
extern void schedule(void);
+extern void cleanup(void);
// void yield(void);
-// struct Thread* next_thread(void);
#endif