xref: /openbmc/linux/arch/sparc/kernel/systbls.h (revision 574c4866e33d648520a8bd5bf6f573ea6e554e88)
1a88b5ba8SSam Ravnborg #ifndef _SYSTBLS_H
2a88b5ba8SSam Ravnborg #define _SYSTBLS_H
3a88b5ba8SSam Ravnborg 
4a88b5ba8SSam Ravnborg #include <linux/kernel.h>
5a88b5ba8SSam Ravnborg #include <linux/types.h>
6*574c4866SAl Viro #include <linux/signal.h>
7a88b5ba8SSam Ravnborg #include <asm/utrap.h>
8a88b5ba8SSam Ravnborg 
9a88b5ba8SSam Ravnborg extern asmlinkage unsigned long sys_getpagesize(void);
10a88b5ba8SSam Ravnborg extern asmlinkage long sparc_pipe(struct pt_regs *regs);
11baed7fc9SChristoph Hellwig extern asmlinkage long sys_sparc_ipc(unsigned int call, int first,
12a88b5ba8SSam Ravnborg 			       unsigned long second,
13a88b5ba8SSam Ravnborg 			       unsigned long third,
14a88b5ba8SSam Ravnborg 			       void __user *ptr, long fifth);
15a88b5ba8SSam Ravnborg extern asmlinkage long sparc64_personality(unsigned long personality);
16a88b5ba8SSam Ravnborg extern asmlinkage long sys64_munmap(unsigned long addr, size_t len);
17a88b5ba8SSam Ravnborg extern asmlinkage unsigned long sys64_mremap(unsigned long addr,
18a88b5ba8SSam Ravnborg 					     unsigned long old_len,
19a88b5ba8SSam Ravnborg 					     unsigned long new_len,
20a88b5ba8SSam Ravnborg 					     unsigned long flags,
21a88b5ba8SSam Ravnborg 					     unsigned long new_addr);
22a88b5ba8SSam Ravnborg extern asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs);
23a88b5ba8SSam Ravnborg extern asmlinkage long sys_getdomainname(char __user *name, int len);
24a88b5ba8SSam Ravnborg extern asmlinkage long sys_utrap_install(utrap_entry_t type,
25a88b5ba8SSam Ravnborg 					 utrap_handler_t new_p,
26a88b5ba8SSam Ravnborg 					 utrap_handler_t new_d,
27a88b5ba8SSam Ravnborg 					 utrap_handler_t __user *old_p,
28a88b5ba8SSam Ravnborg 					 utrap_handler_t __user *old_d);
29a88b5ba8SSam Ravnborg extern asmlinkage long sparc_memory_ordering(unsigned long model,
30a88b5ba8SSam Ravnborg 					     struct pt_regs *regs);
31a88b5ba8SSam Ravnborg extern asmlinkage long sys_rt_sigaction(int sig,
32a88b5ba8SSam Ravnborg 					const struct sigaction __user *act,
33a88b5ba8SSam Ravnborg 					struct sigaction __user *oact,
34a88b5ba8SSam Ravnborg 					void __user *restorer,
35a88b5ba8SSam Ravnborg 					size_t sigsetsize);
36a88b5ba8SSam Ravnborg 
37a88b5ba8SSam Ravnborg extern asmlinkage void sparc64_set_context(struct pt_regs *regs);
38a88b5ba8SSam Ravnborg extern asmlinkage void sparc64_get_context(struct pt_regs *regs);
39a88b5ba8SSam Ravnborg extern asmlinkage long sys_sigpause(unsigned int set);
40a88b5ba8SSam Ravnborg extern asmlinkage long sys_sigsuspend(old_sigset_t set);
41a88b5ba8SSam Ravnborg extern void do_rt_sigreturn(struct pt_regs *regs);
42a88b5ba8SSam Ravnborg 
43a88b5ba8SSam Ravnborg #endif /* _SYSTBLS_H */
44