From a29f40e073a0308bd74f0f9803a4660aa233c3ab Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 12 Mar 2022 16:39:39 -0800 Subject: "Dynamic" Mutex Allocation --- src/globals.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/globals.c') 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 +#include 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 -- cgit v1.2.1