summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2022-07-06 19:52:34 +0200
committerdzwdz2022-07-06 19:52:34 +0200
commitb935b0202ffeafcf775be96c95c8a67b62241a12 (patch)
tree6fd5b599491789661117a76aa52e28084ff72bf9 /src/kernel
parentcaec20e9886fd6d0437b59a9de48a7b686a2cc09 (diff)
kernel: don't panic on nonexistent syscalls
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/syscalls.c4
1 files changed, 2 insertions, 2 deletions
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 */