projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move reboot() and power_off() to new file, and rename to fit convention.
[pintos-anon]
/
src
/
lib
/
kernel
/
debug.c
diff --git
a/src/lib/kernel/debug.c
b/src/lib/kernel/debug.c
index 22801954dd66512d489287a629371c6d88133ecf..43d8c1eddedd70e66c6de5e4b3b2586e45dd90ec 100644
(file)
--- a/
src/lib/kernel/debug.c
+++ b/
src/lib/kernel/debug.c
@@
-11,6
+11,7
@@
#include "threads/switch.h"
#include "threads/vaddr.h"
#include "devices/serial.h"
#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. */
/* 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)
serial_flush ();
if (power_off_when_done)
- power_off ();
+
shutdown_
power_off ();
for (;;);
}
for (;;);
}