aboutsummaryrefslogtreecommitdiff
path: root/src/globals.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-12 16:39:39 -0800
committerChristian Cunningham <cc@localhost>2022-03-12 16:39:39 -0800
commita29f40e073a0308bd74f0f9803a4660aa233c3ab (patch)
treee607ee7eed39da0e1dcf65c4eb76dd1426899f85 /src/globals.c
parentb62c324bde267a5a940b1d06f44f62a125aef50d (diff)
"Dynamic" Mutex Allocation
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c
index 29760b6..c704cb4 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -1,5 +1,6 @@
#define GLOBALS_C
#include <sys/schedule.h>
+#include <util/mutex.h>
char* os_name = "Jobbed";
#ifndef VERSION
char* os_info_v = "?";
@@ -16,6 +17,8 @@ __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.mutexl"))) unsigned long mutex_table[MAX_MUTEXS];
+__attribute__((section(".bss.mutexs"))) struct Mutex mutexs[MAX_MUTEXS];
// 0 - Free
// 1 - Ready
// 2 - Waiting for Mutex