The Pedigree Project  0.1
syscall_arch.h
1 /*
2  * Copyright (c) 2008-2014, Pedigree Developers
3  *
4  * Please see the CONTRIB file in the root of the source tree for a full
5  * list of contributors.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #define VDSO_USEFUL 1
21 
22 #define __SYSCALL_LL_E(x) (x)
23 #define __SYSCALL_LL_O(x) (x)
24 
31 long pedigree_translate_syscall(long which, long a1, long a2, long a3, long a4,
32  long a5, long a6);
33 
34 static __inline long __syscall0(long n)
35 {
36  return pedigree_translate_syscall(n, 0, 0, 0, 0, 0, 0);
37 }
38 
39 static __inline long __syscall1(long n, long a1)
40 {
41  return pedigree_translate_syscall(n, a1, 0, 0, 0, 0, 0);
42 }
43 
44 static __inline long __syscall2(long n, long a1, long a2)
45 {
46  return pedigree_translate_syscall(n, a1, a2, 0, 0, 0, 0);
47 }
48 
49 static __inline long __syscall3(long n, long a1, long a2, long a3)
50 {
51  return pedigree_translate_syscall(n, a1, a2, a3, 0, 0, 0);
52 }
53 
54 static __inline long __syscall4(long n, long a1, long a2, long a3, long a4)
55 {
56  return pedigree_translate_syscall(n, a1, a2, a3, a4, 0, 0);
57 }
58 
59 static __inline long __syscall5(long n, long a1, long a2, long a3, long a4, long a5)
60 {
61  return pedigree_translate_syscall(n, a1, a2, a3, a4, a5, 0);
62 }
63 
64 static __inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a5, long a6)
65 {
66  return pedigree_translate_syscall(n, a1, a2, a3, a4, a5, a6);
67 }