diff options
author | Christian Cunningham <cc@localhost> | 2022-03-24 16:44:51 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-24 16:44:51 -0700 |
commit | 49bd4c133fc83de1cb1761ff089a2de03699d991 (patch) | |
tree | 1033663698e3651d0fdbc6773c6a3db8261ae3c3 /kernel/globals.c | |
parent | bb6ddd5a82ab4f2afa253b6048a71504c64274bb (diff) |
IRQ Subscription
Diffstat (limited to 'kernel/globals.c')
-rw-r--r-- | kernel/globals.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/globals.c b/kernel/globals.c index 5118e96..5cdab01 100644 --- a/kernel/globals.c +++ b/kernel/globals.c @@ -1,4 +1,5 @@ #define GLOBALS_C +#include <cpu/irq.h> #include <sys/schedule.h> #include <util/mutex.h> char* os_name = "Jobbed"; @@ -18,6 +19,7 @@ __attribute__((section(".bss"))) unsigned int gwidth; __attribute__((section(".bss"))) unsigned int gheight; __attribute__((section(".bss"))) unsigned int gpitch; __attribute__((section(".bss"))) unsigned int gisrgb; +__attribute__((section(".bss"))) struct IrqEntry irqs[MAX_IRQS]; __attribute__((section(".bss.mutexs"))) struct Mutex mutexs[MAX_MUTEXS]; __attribute__((section(".bss.mutexe"))) struct Entry mutex_entries[MAX_MUTEXS]; __attribute__((section(".bss.threads"))) struct Thread threads[MAX_THREADS]; |