aboutsummaryrefslogtreecommitdiffstats
path: root/src/threads/init.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/init.h')
-rw-r--r--src/threads/init.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/threads/init.h b/src/threads/init.h
new file mode 100644
index 0000000..afbe37f
--- /dev/null
+++ b/src/threads/init.h
@@ -0,0 +1,22 @@
+#ifndef THREADS_INIT_H
+#define THREADS_INIT_H
+
+#include <debug.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+
+/* Physical memory size, in 4 kB pages. */
+extern size_t ram_pages;
+
+/* Page directory with kernel mappings only. */
+extern uint32_t *base_page_dir;
+
+/* -q: Power off when kernel tasks complete? */
+extern bool power_off_when_done;
+/* -tcf: Simulate failure in thread_create */
+extern int thread_create_limit;
+
+void power_off (void) NO_RETURN;
+
+#endif /* threads/init.h */