diff options
Diffstat (limited to 'src/threads/init.h')
| -rw-r--r-- | src/threads/init.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <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; + +void power_off (void) NO_RETURN; + +#endif /* threads/init.h */ |
