New option -r to reboot the VM after actions are complete.
[pintos-anon] / src / threads / init.h
index 622dea9c8caf1fcc22f04f1e32ce8c1620c56cad..963cbd617d58a4e3e297a27ca17b55c6c0911a2e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef THREADS_INIT_H
 #define THREADS_INIT_H
 
+#include <debug.h>
+#include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 
@@ -10,4 +12,10 @@ 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;
+void reboot (void);
+
 #endif /* threads/init.h */