about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/ioperm.c9
-rw-r--r--src/linux/iopl.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/src/linux/ioperm.c b/src/linux/ioperm.c
new file mode 100644
index 00000000..6d7c37d0
--- /dev/null
+++ b/src/linux/ioperm.c
@@ -0,0 +1,9 @@
+#include <sys/io.h>
+#include "syscall.h"
+
+#ifdef SYS_ioperm
+int ioperm(unsigned long from, unsigned long num, int turn_on)
+{
+	return syscall(SYS_ioperm, from, num, turn_on);
+}
+#endif
diff --git a/src/linux/iopl.c b/src/linux/iopl.c
new file mode 100644
index 00000000..5a626e16
--- /dev/null
+++ b/src/linux/iopl.c
@@ -0,0 +1,9 @@
+#include <sys/io.h>
+#include "syscall.h"
+
+#ifdef SYS_iopl
+int iopl(int level)
+{
+	return syscall(SYS_iopl, level);
+}
+#endif