From a2f9ae9d4ab678fa66a2ec5d1072ea22a36a18a1 Mon Sep 17 00:00:00 2001
From: dzwdz
Date: Thu, 19 Jan 2023 23:36:11 +0100
Subject: kernel: user interrupts

---
 src/user/lib/syscall.c | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/user/lib/syscall.c')

diff --git a/src/user/lib/syscall.c b/src/user/lib/syscall.c
index d6ed0af..d42c2ee 100644
--- a/src/user/lib/syscall.c
+++ b/src/user/lib/syscall.c
@@ -74,6 +74,14 @@ void _syscall_filicide(void) {
 	return (void)_syscall(_SYSCALL_FILICIDE, 0, 0, 0, 0, 0);
 }
 
+void _syscall_intr(void) {
+	return (void)_syscall(_SYSCALL_INTR, 0, 0, 0, 0, 0);
+}
+
+void _syscall_intr_set(void __user *ip) {
+	return (void)_syscall(_SYSCALL_INTR_SET, (long)ip, 0, 0, 0, 0);
+}
+
 long _syscall_execbuf(void __user *buf, size_t len) {
 	return _syscall(_SYSCALL_EXECBUF, (long)buf, (long)len, 0, 0, 0);
 }
-- 
cgit v1.2.3