From 2c78dc983d09e136dd016ae6ecee6b191e033de1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Sep 2023 00:12:57 +0200 Subject: kernel/intr: accept a message, allow killing processes via intrs --- src/libc/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libc/syscall.c') diff --git a/src/libc/syscall.c b/src/libc/syscall.c index 4cdbe6c..782b2fe 100644 --- a/src/libc/syscall.c +++ b/src/libc/syscall.c @@ -70,8 +70,8 @@ void _sys_filicide(void) { return (void)_syscall(_SYS_FILICIDE, 0, 0, 0, 0, 0); } -void _sys_intr(void) { - return (void)_syscall(_SYS_INTR, 0, 0, 0, 0, 0); +int _sys_intr(const char __user *msg, size_t len) { + return (int)_syscall(_SYS_INTR, (long)msg, (long)len, 0, 0, 0); } void _sys_intr_set(void __user *ip) { -- cgit v1.2.3