From d4522b8e9854178473adcea0fbb84f23f6e744bd Mon Sep 17 00:00:00 2001 From: Felipe Boeira Date: Tue, 8 Jan 2019 18:39:03 +0100 Subject: Initial commit --- src/threads/init.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/threads/init.h (limited to 'src/threads/init.h') diff --git a/src/threads/init.h b/src/threads/init.h new file mode 100644 index 0000000..a6fec05 --- /dev/null +++ b/src/threads/init.h @@ -0,0 +1,20 @@ +#ifndef THREADS_INIT_H +#define THREADS_INIT_H + +#include +#include +#include +#include + +/* 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; + +void power_off (void) NO_RETURN; + +#endif /* threads/init.h */ -- cgit v1.2.1