aboutsummaryrefslogtreecommitdiff
path: root/include/globals.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-20 23:22:42 -0700
committerChristian Cunningham <cc@localhost>2022-01-20 23:22:42 -0700
commit73a80de4228a498b483c8e10ab317920d978d507 (patch)
treeeea73a138a509d7758ef477d4997cf7147233604 /include/globals.h
parentc2e52566ed53b53227a6fe577a05170766a1ae4c (diff)
Moved globals to file
Diffstat (limited to 'include/globals.h')
-rw-r--r--include/globals.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/globals.h b/include/globals.h
new file mode 100644
index 0000000..0b3eaed
--- /dev/null
+++ b/include/globals.h
@@ -0,0 +1,27 @@
+#ifndef GLOBALS_H
+#define GLOBALS_H
+#include <lib/mem.h>
+#include <sys/schedule.h>
+
+#ifndef GLOBALS_C
+extern unsigned long cntfrq;
+extern unsigned long cmdidx;
+extern char cmd[2048];
+
+extern char* os_info_v;
+extern unsigned long exe_cnt;
+extern struct Mutex exe_cnt_m;
+extern unsigned char rpi_heap[MAX_MM];
+extern void* rpi_heap_top;
+extern unsigned long nextpid;
+extern unsigned long stimel;
+extern unsigned long stimeh;
+extern struct Drawer g_Drawer;
+extern struct Scheduler scheduler;
+extern unsigned long svcsp;
+extern struct cpu_context svccpu;
+extern unsigned int gwidth, gheight, gpitch, gisrgb;
+extern unsigned char stacks_table[MAX_THREADS];
+#endif
+
+#endif