diff options
Diffstat (limited to 'src/panic.c')
| -rw-r--r-- | src/panic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panic.c b/src/panic.c index 03c0de8..5495ebe 100644 --- a/src/panic.c +++ b/src/panic.c @@ -6,6 +6,7 @@ * Kernel panic handler implementation. */ +#include <kmi/syscalls.h> #include <kmi/power.h> #include <kmi/debug.h> @@ -17,7 +18,7 @@ void kernel_panic(void *pc, void *addr, long cause) info("attempting to reboot\n"); - poweroff(COLD_REBOOT); + poweroff(SYS_COLD_REBOOT); /* spin if poweroff failed for some reason */ error("reboot failed, spinning in place\n"); |
