Move reboot() and power_off() to new file, and rename to fit convention.
[pintos-anon] / src / lib / kernel / debug.c
index 22801954dd66512d489287a629371c6d88133ecf..43d8c1eddedd70e66c6de5e4b3b2586e45dd90ec 100644 (file)
@@ -11,6 +11,7 @@
 #include "threads/switch.h"
 #include "threads/vaddr.h"
 #include "devices/serial.h"
+#include "devices/shutdown.h"
 
 /* Halts the OS, printing the source file name, line number, and
    function name, plus a user-specific message. */
@@ -46,7 +47,7 @@ debug_panic (const char *file, int line, const char *function,
 
   serial_flush ();
   if (power_off_when_done)
-    power_off ();
+    shutdown_power_off ();
   for (;;);
 }