From ad9e577e8b2f6431d48a6a64fd95aff432e48441 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 10 Mar 2022 20:01:25 -0800 Subject: More Deterministic --- src/globals.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/globals.c') diff --git a/src/globals.c b/src/globals.c index e94580c..29760b6 100644 --- a/src/globals.c +++ b/src/globals.c @@ -1,6 +1,4 @@ #define GLOBALS_C -#include -#include #include char* os_name = "Jobbed"; #ifndef VERSION @@ -9,10 +7,7 @@ char* os_info_v = "?"; char* os_info_v = VERSION; #endif -__attribute__((section(".bss.kmem"))) unsigned char kmem_begin[0x2000000]; -__attribute__((section(".bss"))) unsigned char kmem_lookup[0xD000]; __attribute__((section(".bss"))) unsigned long nextpid; -__attribute__((section(".bss"))) unsigned long sched_stack_count; __attribute__((section(".bss"))) unsigned long stimel; __attribute__((section(".bss"))) unsigned long stimeh; __attribute__((section(".bss"))) struct Scheduler scheduler; @@ -21,4 +16,10 @@ __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"))) unsigned char stacks_table[MAX_THREADS]; +// 0 - Free +// 1 - Ready +// 2 - Waiting for Mutex +// 3 - Waiting for Signal +// 4+ - Reserved +__attribute__((section(".bss.threadl"))) unsigned char thread_table[MAX_THREADS]; +__attribute__((section(".bss.threads"))) struct Thread threads[MAX_THREADS]; -- cgit v1.2.1