From 3922adcdec5bd003b4106ffce79c28553bc40c15 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 14 Feb 2024 17:40:06 +0100 Subject: Kernel: Update signal handling and IPC --- kernel/syscalls/port.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 kernel/syscalls/port.c (limited to 'kernel/syscalls/port.c') 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 + +// 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); +} -- cgit v1.2.3