clean-up left-over arch-depend code from kernel base
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall.h
index 3b0f0702f345a4ab4027f676754c0b958ee605d6..3884f2a47edcfcaaeb05657e714a52657ee998e3 100644 (file)
@@ -1,17 +1,13 @@
 #ifndef __LUNAIX_SYSCALL_H
 #define __LUNAIX_SYSCALL_H
 
-#include <sys/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 */