feature (syscalls): implemented nx_panic syscall
This commit is contained in:
parent
70db6f961c
commit
9b50ca77da
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue