essence-os/ports/musl/changes/arch_x86_64_syscall_arch.h

50 lines
1.2 KiB
C

#define __SYSCALL_LL_E(x) (x)
#define __SYSCALL_LL_O(x) (x)
long OSMakeLinuxSystemCall(long n, long a1, long a2, long a3, long a4, long a5, long a6);
static __inline long __syscall0(long n)
{
return OSMakeLinuxSystemCall(n, 0, 0, 0, 0, 0, 0);
}
static __inline long __syscall1(long n, long a1)
{
return OSMakeLinuxSystemCall(n, a1, 0, 0, 0, 0, 0);
}
static __inline long __syscall2(long n, long a1, long a2)
{
return OSMakeLinuxSystemCall(n, a1, a2, 0, 0, 0, 0);
}
static __inline long __syscall3(long n, long a1, long a2, long a3)
{
return OSMakeLinuxSystemCall(n, a1, a2, a3, 0, 0, 0);
}
static __inline long __syscall4(long n, long a1, long a2, long a3, long a4)
{
return OSMakeLinuxSystemCall(n, a1, a2, a3, a4, 0, 0);
}
static __inline long __syscall5(long n, long a1, long a2, long a3, long a4, long a5)
{
return OSMakeLinuxSystemCall(n, a1, a2, a3, a4, a5, 0);
}
static __inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a5, long a6)
{
return OSMakeLinuxSystemCall(n, a1, a2, a3, a4, a5, a6);
}
#if 0
#define VDSO_USEFUL
#define VDSO_CGT_SYM "__vdso_clock_gettime"
#define VDSO_CGT_VER "LINUX_2.6"
#define VDSO_GETCPU_SYM "__vdso_getcpu"
#define VDSO_GETCPU_VER "LINUX_2.6"
#endif
#define IPC_64 0