New option -r to reboot the VM after actions are complete.
[pintos-anon] / src / threads / init.h
1 #ifndef THREADS_INIT_H
2 #define THREADS_INIT_H
3
4 #include <debug.h>
5 #include <stdbool.h>
6 #include <stddef.h>
7 #include <stdint.h>
8
9 /* Physical memory size, in 4 kB pages. */
10 extern size_t ram_pages;
11
12 /* Page directory with kernel mappings only. */
13 extern uint32_t *base_page_dir;
14
15 /* -q: Power off when kernel tasks complete? */
16 extern bool power_off_when_done;
17
18 void power_off (void) NO_RETURN;
19 void reboot (void);
20
21 #endif /* threads/init.h */