diff --git a/kernel/src/platform/syscall.c b/kernel/src/platform/syscall.c index 136d715..01d9411 100644 --- a/kernel/src/platform/syscall.c +++ b/kernel/src/platform/syscall.c @@ -23,6 +23,7 @@ #include "platform/syscall.h" #include "utils/logger.h" +#include "utils/panic.h" #include "proc/scheduler.h" #include "drivers/fs/vfs.h" @@ -62,6 +63,10 @@ cpu_state_T* syscall_handle(cpu_state_T* state) { return_state = scheduler_start(state); break; } + case SYSCALL_KERNEL_PANIC: { + panic(state, (string_t)arg1); + break; + } default: { log(LOG_WARNING, "unhandled syscall: 0x%xw", state->rax);