summaryrefslogtreecommitdiff
path: root/src/libc
diff options
context:
space:
mode:
authordzwdz2023-09-25 00:12:57 +0200
committerdzwdz2023-09-25 00:12:57 +0200
commit2c78dc983d09e136dd016ae6ecee6b191e033de1 (patch)
treefa3f0c858a0c1b61d00d4a7474e80b1aa0368bbf /src/libc
parent16138fc20fc9c472af37fb8385a997a0d9202f32 (diff)
kernel/intr: accept a message, allow killing processes via intrs
Diffstat (limited to 'src/libc')
-rw-r--r--src/libc/syscall.c4
1 files changed, 2 insertions, 2 deletions
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) {