long (__syscall)(long, ...);
-#ifndef __clang__
-
#define __asm_syscall(...) do { \
__asm__ __volatile__ ( "svc 0" \
: "=r"(r0) : __VA_ARGS__ : "memory"); \
__asm_syscall("r"(r7), "0"(r0), "r"(r1), "r"(r2), "r"(r3));
}
-#else
-
-static inline long __syscall0(long n)
-{
- return (__syscall)(n);
-}
-
-static inline long __syscall1(long n, long a)
-{
- return (__syscall)(n, a);
-}
-
-static inline long __syscall2(long n, long a, long b)
-{
- return (__syscall)(n, a, b);
-}
-
-static inline long __syscall3(long n, long a, long b, long c)
-{
- return (__syscall)(n, a, b, c);
-}
-
-static inline long __syscall4(long n, long a, long b, long c, long d)
-{
- return (__syscall)(n, a, b, c, d);
-}
-
-#endif
-
static inline long __syscall5(long n, long a, long b, long c, long d, long e)
{
return (__syscall)(n, a, b, c, d, e);