basic user, group and capability housekeeping.
[lunaix-os.git] / lunaix-os / arch / x86 / syscall_lut.S
diff --git a/lunaix-os/arch/x86/syscall_lut.S b/lunaix-os/arch/x86/syscall_lut.S
new file mode 100644 (file)
index 0000000..4bee0b4
--- /dev/null
@@ -0,0 +1,20 @@
+#define __ASM__
+#include <lunaix/syscall.h>
+
+#ifdef CONFIG_ARCH_X86_64
+#   define SYSCALL     .8byte
+#   define SIZE    8
+#else
+#   define SIZE    4
+#   define SYSCALL     .4byte
+#endif
+
+.section .data
+    .global __syscall_table
+    __syscall_table:
+        1:
+        #include "syscall_nr.inc"
+        2:
+        .rept __SYSCALL_MAX - (2b - 1b) / SIZE
+            .long 0
+        .endr
\ No newline at end of file