From 9b50ca77da65ed3a8e0f95c59f235460b32d189c Mon Sep 17 00:00:00 2001 From: antifallobst Date: Thu, 9 Mar 2023 00:19:59 +0100 Subject: [PATCH] feature (syscalls): implemented nx_panic syscall --- kernel/src/platform/syscall.c | 5 +++++ 1 file changed, 5 insertions(+) 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);