21 #error syscall-stubs.h requires SERVICE to be defined 24 #error syscall-stubs.h requires SERVICE_ERROR to be defined 27 #error syscall-stubs.h requires SERVICE_INIT to be defined 30 typedef long (*syscall_caller_t)(
31 long service,
long function,
void *error,
long p1,
long p2,
long p3,
34 static syscall_caller_t __hosted_syscall = (syscall_caller_t) 0x399000;
36 static long syscall0(
long function)
39 return __hosted_syscall(SERVICE,
function, &SERVICE_ERROR, 0, 0, 0, 0, 0);
42 static long syscall1(
long function,
long p1)
45 return __hosted_syscall(SERVICE,
function, &SERVICE_ERROR, p1, 0, 0, 0, 0);
48 static long syscall2(
long function,
long p1,
long p2)
51 return __hosted_syscall(SERVICE,
function, &SERVICE_ERROR, p1, p2, 0, 0, 0);
54 static long syscall3(
long function,
long p1,
long p2,
long p3)
57 return __hosted_syscall(
58 SERVICE,
function, &SERVICE_ERROR, p1, p2, p3, 0, 0);
61 static long syscall4(
long function,
long p1,
long p2,
long p3,
long p4)
64 return __hosted_syscall(
65 SERVICE,
function, &SERVICE_ERROR, p1, p2, p3, p4, 0);
68 static long syscall5(
long function,
long p1,
long p2,
long p3,
long p4,
long p5)
71 return __hosted_syscall(
72 SERVICE,
function, &SERVICE_ERROR, p1, p2, p3, p4, p5);