Blame arch/nt64/syscall_arch.h

860627
extern unsigned long ** __syscall_vtbl;
860627
860627
typedef long __syscall0_fn(void);
860627
typedef long __syscall1_fn(long a1);
860627
typedef long __syscall2_fn(long a1, long a2);
860627
typedef long __syscall3_fn(long a1, long a2, long a3);
860627
typedef long __syscall4_fn(long a1, long a2, long a3, long a4);
860627
typedef long __syscall5_fn(long a1, long a2, long a3, long a4, long a5);
860627
typedef long __syscall6_fn(long a1, long a2, long a3, long a4, long a5, long a6);
860627
860627
#define sysfn_from_fn(x) \
860627
	x * sysfn = (x *)__syscall_vtbl[n]
860627
860627
static __inline long __syscall0(long n)
860627
{
860627
	sysfn_from_fn(__syscall0_fn);
860627
	return sysfn();
860627
}
860627
860627
static __inline long __syscall1(long n, long a1)
860627
{
860627
	sysfn_from_fn(__syscall1_fn);
860627
	return sysfn(a1);
860627
}
860627
860627
static __inline long __syscall2(long n, long a1, long a2)
860627
{
860627
	sysfn_from_fn(__syscall2_fn);
860627
	return sysfn(a1, a2);
860627
}
860627
860627
static __inline long __syscall3(long n, long a1, long a2, long a3)
860627
{
860627
	sysfn_from_fn(__syscall3_fn);
860627
	return sysfn(a1, a2, a3);
860627
}
860627
860627
static __inline long __syscall4(long n, long a1, long a2, long a3, long a4)
860627
{
860627
	sysfn_from_fn(__syscall4_fn);
860627
	return sysfn(a1, a2, a3, a4);
860627
}
860627
860627
static __inline long __syscall5(long n, long a1, long a2, long a3, long a4, long a5)
860627
{
860627
	sysfn_from_fn(__syscall5_fn);
860627
	return sysfn(a1, a2, a3, a4, a5);
860627
}
860627
860627
static __inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a5, long a6)
860627
{
860627
	sysfn_from_fn(__syscall6_fn);
860627
	return sysfn(a1, a2, a3, a4, a5, a6);
860627
}
860627
860627
860627
#define __SYSCALL_LL_E(x) (x)
860627
#define __SYSCALL_LL_O(x) (x)