aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/globals.h')
-rw-r--r--kernel/include/globals.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/include/globals.h b/kernel/include/globals.h
new file mode 100644
index 0000000..42d4275
--- /dev/null
+++ b/kernel/include/globals.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "main/smp.h"
+#include "proc/kthread.h"
+#include "proc/proc.h"
+
+#define CORE_SPECIFIC_DATA __attribute__((section(".csd"))) = {0}
+
+extern core_t curcore;
+extern proc_t *curproc;
+extern kthread_t *curthr;