diff options
| author | Felipe Boeira <felipe.boeira@liu.se> | 2019-01-08 18:39:03 +0100 |
|---|---|---|
| committer | Felipe Boeira <felipe.boeira@liu.se> | 2019-01-08 18:39:03 +0100 |
| commit | d4522b8e9854178473adcea0fbb84f23f6e744bd (patch) | |
| tree | fbcf620617c5023154eba3f965b3a982daa64a47 /src/threads/init.h | |
| download | pintos-d4522b8e9854178473adcea0fbb84f23f6e744bd.tar.gz | |
Initial commit
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 */ |
