1 #ifndef __ASM_POWERPC_SYSCALLS_H
2 #define __ASM_POWERPC_SYSCALLS_H
5 #include <linux/compiler.h>
6 #include <linux/linkage.h>
7 #include <linux/types.h>
8 #include <asm/signal.h>
15 asmlinkage
unsigned long sys_mmap(unsigned long addr
, size_t len
,
16 unsigned long prot
, unsigned long flags
,
17 unsigned long fd
, off_t offset
);
18 asmlinkage
unsigned long sys_mmap2(unsigned long addr
, size_t len
,
19 unsigned long prot
, unsigned long flags
,
20 unsigned long fd
, unsigned long pgoff
);
21 asmlinkage
int sys_execve(unsigned long a0
, unsigned long a1
,
22 unsigned long a2
, unsigned long a3
, unsigned long a4
,
23 unsigned long a5
, struct pt_regs
*regs
);
24 asmlinkage
int sys_clone(unsigned long clone_flags
, unsigned long usp
,
25 int __user
*parent_tidp
, void __user
*child_threadptr
,
26 int __user
*child_tidp
, int p6
, struct pt_regs
*regs
);
27 asmlinkage
int sys_fork(unsigned long p1
, unsigned long p2
,
28 unsigned long p3
, unsigned long p4
, unsigned long p5
,
29 unsigned long p6
, struct pt_regs
*regs
);
30 asmlinkage
int sys_vfork(unsigned long p1
, unsigned long p2
,
31 unsigned long p3
, unsigned long p4
, unsigned long p5
,
32 unsigned long p6
, struct pt_regs
*regs
);
33 asmlinkage
int sys_pipe(int __user
*fildes
);
34 asmlinkage
long sys_rt_sigaction(int sig
,
35 const struct sigaction __user
*act
,
36 struct sigaction __user
*oact
, size_t sigsetsize
);
37 asmlinkage
int sys_ipc(uint call
, int first
, unsigned long second
,
38 long third
, void __user
*ptr
, long fifth
);
39 asmlinkage
long ppc64_personality(unsigned long personality
);
40 asmlinkage
int ppc_rtas(struct rtas_args __user
*uargs
);
41 asmlinkage
time_t sys64_time(time_t __user
* tloc
);
42 asmlinkage
long ppc_newuname(struct new_utsname __user
* name
);
44 asmlinkage
long sys_rt_sigsuspend(sigset_t __user
*unewset
,
48 asmlinkage
long sys_sigaltstack(const stack_t __user
*uss
,
49 stack_t __user
*uoss
, int r5
, int r6
, int r7
, int r8
,
50 struct pt_regs
*regs
);
51 #else /* __powerpc64__ */
52 asmlinkage
long sys_sigaltstack(const stack_t __user
*uss
,
53 stack_t __user
*uoss
, unsigned long r5
, unsigned long r6
,
54 unsigned long r7
, unsigned long r8
, struct pt_regs
*regs
);
55 #endif /* __powerpc64__ */
57 #endif /* __KERNEL__ */
58 #endif /* __ASM_POWERPC_SYSCALLS_H */