X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Flib%2Fkernel%2Fdebug.c;h=43d8c1eddedd70e66c6de5e4b3b2586e45dd90ec;hp=22801954dd66512d489287a629371c6d88133ecf;hb=a4e60364ebf69203297ce071914671d2b49d9b6d;hpb=8b805d179d0bd022182491d91584280a83eb451d diff --git a/src/lib/kernel/debug.c b/src/lib/kernel/debug.c index 2280195..43d8c1e 100644 --- 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 "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 (;;); }