clean-up left-over arch-depend code from kernel base
[lunaix-os.git] / lunaix-os / includes / lunaix / syscall.h
index 1b9778f79b2a783e09b2509ab908a9a2bdbb637b..3884f2a47edcfcaaeb05657e714a52657ee998e3 100644 (file)
@@ -5,9 +5,9 @@
 
 #ifndef __ASM__
 
 
 #ifndef __ASM__
 
-#define SYSCALL_ESTATUS(errno) -((errno) != 0)
+#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__)
 
 #define __PARAM_MAP1(t1, p1) t1 p1
 #define __PARAM_MAP2(t1, p1, ...) t1 p1, __PARAM_MAP1(__VA_ARGS__)