1bb898558SAl Viro /* 2bb898558SAl Viro * syscalls.h - Linux syscall interfaces (arch-specific) 3bb898558SAl Viro * 4*2c1b284eSJaswinder Singh Rajput * Copyright (c) 2008 Jaswinder Singh Rajput 5bb898558SAl Viro * 6bb898558SAl Viro * This file is released under the GPLv2. 7bb898558SAl Viro * See the file COPYING for more details. 8bb898558SAl Viro */ 9bb898558SAl Viro 10bb898558SAl Viro #ifndef _ASM_X86_SYSCALLS_H 11bb898558SAl Viro #define _ASM_X86_SYSCALLS_H 12bb898558SAl Viro 13bb898558SAl Viro #include <linux/compiler.h> 14bb898558SAl Viro #include <linux/linkage.h> 15bb898558SAl Viro #include <linux/signal.h> 16*2c1b284eSJaswinder Singh Rajput #include <linux/types.h> 17bb898558SAl Viro 18bb898558SAl Viro /* Common in X86_32 and X86_64 */ 19bb898558SAl Viro /* kernel/ioport.c */ 20bb898558SAl Viro asmlinkage long sys_ioperm(unsigned long, unsigned long, int); 21bb898558SAl Viro 22*2c1b284eSJaswinder Singh Rajput /* kernel/process.c */ 23*2c1b284eSJaswinder Singh Rajput int sys_fork(struct pt_regs *); 24*2c1b284eSJaswinder Singh Rajput int sys_vfork(struct pt_regs *); 25*2c1b284eSJaswinder Singh Rajput 26c0195b6dSJaswinder Singh /* kernel/ldt.c */ 27c0195b6dSJaswinder Singh asmlinkage int sys_modify_ldt(int, void __user *, unsigned long); 28c0195b6dSJaswinder Singh 29*2c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 30*2c1b284eSJaswinder Singh Rajput long sys_rt_sigreturn(struct pt_regs *); 31*2c1b284eSJaswinder Singh Rajput 327c9c160cSJaswinder Singh /* kernel/tls.c */ 337c9c160cSJaswinder Singh asmlinkage int sys_set_thread_area(struct user_desc __user *); 347c9c160cSJaswinder Singh asmlinkage int sys_get_thread_area(struct user_desc __user *); 357c9c160cSJaswinder Singh 36bb898558SAl Viro /* X86_32 only */ 37bb898558SAl Viro #ifdef CONFIG_X86_32 38*2c1b284eSJaswinder Singh Rajput /* kernel/ioport.c */ 39*2c1b284eSJaswinder Singh Rajput long sys_iopl(struct pt_regs *); 40*2c1b284eSJaswinder Singh Rajput 41bb898558SAl Viro /* kernel/process_32.c */ 42b12bdaf1SBrian Gerst int sys_clone(struct pt_regs *); 43b12bdaf1SBrian Gerst int sys_execve(struct pt_regs *); 44bb898558SAl Viro 45*2c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 46bb898558SAl Viro asmlinkage int sys_sigsuspend(int, int, old_sigset_t); 47bb898558SAl Viro asmlinkage int sys_sigaction(int, const struct old_sigaction __user *, 48bb898558SAl Viro struct old_sigaction __user *); 49b12bdaf1SBrian Gerst int sys_sigaltstack(struct pt_regs *); 50b12bdaf1SBrian Gerst unsigned long sys_sigreturn(struct pt_regs *); 51bb898558SAl Viro 52bb898558SAl Viro /* kernel/sys_i386_32.c */ 53*2c1b284eSJaswinder Singh Rajput struct mmap_arg_struct; 54*2c1b284eSJaswinder Singh Rajput struct sel_arg_struct; 55*2c1b284eSJaswinder Singh Rajput struct oldold_utsname; 56*2c1b284eSJaswinder Singh Rajput struct old_utsname; 57*2c1b284eSJaswinder Singh Rajput 58bb898558SAl Viro asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long, 59bb898558SAl Viro unsigned long, unsigned long, unsigned long); 60bb898558SAl Viro asmlinkage int old_mmap(struct mmap_arg_struct __user *); 61bb898558SAl Viro asmlinkage int old_select(struct sel_arg_struct __user *); 62bb898558SAl Viro asmlinkage int sys_ipc(uint, int, int, int, void __user *, long); 63bb898558SAl Viro asmlinkage int sys_uname(struct old_utsname __user *); 64bb898558SAl Viro asmlinkage int sys_olduname(struct oldold_utsname __user *); 65bb898558SAl Viro 66bb898558SAl Viro /* kernel/vm86_32.c */ 67b12bdaf1SBrian Gerst int sys_vm86old(struct pt_regs *); 68b12bdaf1SBrian Gerst int sys_vm86(struct pt_regs *); 69bb898558SAl Viro 70bb898558SAl Viro #else /* CONFIG_X86_32 */ 71bb898558SAl Viro 72bb898558SAl Viro /* X86_64 only */ 73*2c1b284eSJaswinder Singh Rajput /* kernel/ioport.c */ 74*2c1b284eSJaswinder Singh Rajput asmlinkage long sys_iopl(unsigned int, struct pt_regs *); 75*2c1b284eSJaswinder Singh Rajput 76bb898558SAl Viro /* kernel/process_64.c */ 77bb898558SAl Viro asmlinkage long sys_clone(unsigned long, unsigned long, 78bb898558SAl Viro void __user *, void __user *, 79bb898558SAl Viro struct pt_regs *); 80bb898558SAl Viro asmlinkage long sys_execve(char __user *, char __user * __user *, 81bb898558SAl Viro char __user * __user *, 82bb898558SAl Viro struct pt_regs *); 838d4b4981SJaswinder Singh Rajput long sys_arch_prctl(int, unsigned long); 84bb898558SAl Viro 85*2c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 86bb898558SAl Viro asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *, 87bb898558SAl Viro struct pt_regs *); 88bb898558SAl Viro 89bb898558SAl Viro /* kernel/sys_x86_64.c */ 90*2c1b284eSJaswinder Singh Rajput struct new_utsname; 91*2c1b284eSJaswinder Singh Rajput 92bb898558SAl Viro asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long, 93bb898558SAl Viro unsigned long, unsigned long, unsigned long); 94bb898558SAl Viro asmlinkage long sys_uname(struct new_utsname __user *); 95bb898558SAl Viro 96bb898558SAl Viro #endif /* CONFIG_X86_32 */ 97bb898558SAl Viro #endif /* _ASM_X86_SYSCALLS_H */ 98