summaryrefslogtreecommitdiff
path: root/kernel/syscalls/port.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-02-14 17:40:06 +0100
committerAnton Kling <anton@kling.gg>2024-02-14 17:40:06 +0100
commit3922adcdec5bd003b4106ffce79c28553bc40c15 (patch)
treef1af360cd7ad75d4b5f19bf066bf7e29ce8e3e53 /kernel/syscalls/port.c
parenta8ffc46136eb16adc87fb520c724467d1295a854 (diff)
Kernel: Update signal handling and IPC
Diffstat (limited to 'kernel/syscalls/port.c')
-rw-r--r--kernel/syscalls/port.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/syscalls/port.c b/kernel/syscalls/port.c
new file mode 100644
index 0000000..0a27a5e
--- /dev/null
+++ b/kernel/syscalls/port.c
@@ -0,0 +1,14 @@
+#include <syscalls.h>
+
+// FIXME: PERMISSION CHECKS
+void syscall_outw(u16 port, u16 word) {
+ outw(port, word);
+}
+
+void syscall_outl(u16 port, u32 l) {
+ outl(port, l);
+}
+
+u32 syscall_inl(u16 port) {
+ return inl(port);
+}