Merge branch 'master' into isa/arm64
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall.h
index 4a101fa73c280f31c47a369149b927c4b092fb4e..3884f2a47edcfcaaeb05657e714a52657ee998e3 100644 (file)
@@ -1,17 +1,13 @@
 #ifndef __LUNAIX_SYSCALL_H
 #define __LUNAIX_SYSCALL_H
 
-#include <arch/x86/vectors.h>
 #include <usr/lunaix/syscallid.h>
 
 #ifndef __ASM__
 
-#define SYSCALL_ESTATUS(errno) -((errno) != 0)
-
-void
-syscall_install();
+#include <lunaix/compiler.h>
 
-#define asmlinkage __attribute__((regparm(0)))
+#define SYSCALL_ESTATUS(errno) -((errno) != 0)
 
 #define __PARAM_MAP1(t1, p1) t1 p1
 #define __PARAM_MAP2(t1, p1, ...) t1 p1, __PARAM_MAP1(__VA_ARGS__)
@@ -40,9 +36,5 @@ syscall_install();
     asmlinkage rettype __lxsys_##name(                                         \
       __PARAM_MAP5(t1, p1, t2, p2, t3, p3, t4, p4, t5, p5))
 
-#define __SYSCALL_INTERRUPTIBLE(code)                                          \
-    asm("sti");                                                                \
-    { code };                                                                  \
-    asm("cli");
 #endif
 #endif /* __LUNAIX_SYSCALL_H */