summaryrefslogtreecommitdiff
path: root/kernel/syscalls/port.c
diff options
context:
space:
mode:
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);
+}