aboutsummaryrefslogtreecommitdiff
path: root/i686/sys/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'i686/sys/syscall.h')
-rw-r--r--i686/sys/syscall.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/i686/sys/syscall.h b/i686/sys/syscall.h
new file mode 100644
index 0000000..9e62c89
--- /dev/null
+++ b/i686/sys/syscall.h
@@ -0,0 +1,8 @@
+#pragma once
+
+static inline int
+syscall(int number)
+{
+ asm volatile("int $0x80");
+ return 0;
+}