From 73a80de4228a498b483c8e10ab317920d978d507 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 20 Jan 2022 23:22:42 -0700 Subject: Moved globals to file --- src/globals.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/globals.c (limited to 'src/globals.c') diff --git a/src/globals.c b/src/globals.c new file mode 100644 index 0000000..d14103d --- /dev/null +++ b/src/globals.c @@ -0,0 +1,27 @@ +#define GLOBALS_C +#include +#include +#include +#include +#ifndef VERSION +char* os_info_v = "?"; +#else +char* os_info_v = VERSION; +#endif + +__attribute__((section(".bss"))) unsigned long exe_cnt; +__attribute__((section(".bss"))) struct Mutex exe_cnt_m; +__attribute__((section(".bss.mmheap"))) unsigned char rpi_heap[MAX_MM]; +__attribute__((section(".bss"))) void* rpi_heap_top; +__attribute__((section(".bss"))) unsigned long nextpid; +__attribute__((section(".bss"))) unsigned long stimel; +__attribute__((section(".bss"))) unsigned long stimeh; +__attribute__((section(".bss"))) struct Drawer g_Drawer; +__attribute__((section(".bss"))) struct Scheduler scheduler; +__attribute__((section(".bss"))) unsigned long svcsp; +__attribute__((section(".bss"))) struct cpu_context svccpu; +__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]; -- cgit v1.2.1