From b935b0202ffeafcf775be96c95c8a67b62241a12 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 6 Jul 2022 19:52:34 +0200 Subject: kernel: don't panic on nonexistent syscalls --- src/kernel/syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 05616a3..ae8b0e5 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -365,8 +365,8 @@ int _syscall(int num, int a, int b, int c, int d) { _syscall_debug_klog((userptr_t)a, b); break; default: - kprintf("unknown syscall "); - panic_unimplemented(); // TODO fail gracefully + regs_savereturn(&process_current->regs, -1); + break; } /* return value is unused. execution continues in sysenter_stage2 */ -- cgit v1.2.3