diff options
author | Christian Cunningham <cc@localhost> | 2022-03-18 13:39:56 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-18 13:39:56 -0700 |
commit | 0c3837ef8fe77b0d65094f6a2cf3d7b17bcc7cbf (patch) | |
tree | aa018a9f606b7e983700d6268bb444ddaf020b5d /src/globals.c | |
parent | 74f95c5696335b02d768815fea2940bf089d057f (diff) |
Added mutex management queues
Diffstat (limited to 'src/globals.c')
-rw-r--r-- | src/globals.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/globals.c b/src/globals.c index 944f01e..5118e96 100644 --- a/src/globals.c +++ b/src/globals.c @@ -12,12 +12,13 @@ __attribute__((section(".bss"))) unsigned long nextpid; __attribute__((section(".bss"))) unsigned long stimel; __attribute__((section(".bss"))) unsigned long stimeh; __attribute__((section(".bss"))) struct Scheduler scheduler; +__attribute__((section(".bss"))) struct MutexManager mutex_manager; __attribute__((section(".bss"))) struct Thread usrloopthread; __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]; +__attribute__((section(".bss.mutexe"))) struct Entry mutex_entries[MAX_MUTEXS]; __attribute__((section(".bss.threads"))) struct Thread threads[MAX_THREADS]; __attribute__((section(".bss.threade"))) struct Entry thread_entries[MAX_THREADS]; |