1bb898558SAl Viro /* 2bb898558SAl Viro * syscalls.h - Linux syscall interfaces (arch-specific) 3bb898558SAl Viro * 42c1b284eSJaswinder 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> 162c1b284eSJaswinder 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); 21b3af11afSAl Viro asmlinkage long sys_iopl(unsigned int); 22bb898558SAl Viro 23c0195b6dSJaswinder Singh /* kernel/ldt.c */ 24c0195b6dSJaswinder Singh asmlinkage int sys_modify_ldt(int, void __user *, unsigned long); 25c0195b6dSJaswinder Singh 262c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 273fe26fa3SAl Viro long sys_rt_sigreturn(void); 282c1b284eSJaswinder Singh Rajput 297c9c160cSJaswinder Singh /* kernel/tls.c */ 30*2cf09666SAl Viro asmlinkage long sys_set_thread_area(struct user_desc __user *); 31*2cf09666SAl Viro asmlinkage long sys_get_thread_area(struct user_desc __user *); 327c9c160cSJaswinder Singh 33bb898558SAl Viro /* X86_32 only */ 34bb898558SAl Viro #ifdef CONFIG_X86_32 35bb898558SAl Viro 362c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 373fe26fa3SAl Viro unsigned long sys_sigreturn(void); 38bb898558SAl Viro 39bb898558SAl Viro /* kernel/vm86_32.c */ 4049cb25e9SAl Viro int sys_vm86old(struct vm86_struct __user *); 4149cb25e9SAl Viro int sys_vm86(unsigned long, unsigned long); 42bb898558SAl Viro 43bb898558SAl Viro #else /* CONFIG_X86_32 */ 44bb898558SAl Viro 45bb898558SAl Viro /* X86_64 only */ 46bb898558SAl Viro /* kernel/process_64.c */ 478d4b4981SJaswinder Singh Rajput long sys_arch_prctl(int, unsigned long); 48bb898558SAl Viro 49bb898558SAl Viro /* kernel/sys_x86_64.c */ 50bb898558SAl Viro asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long, 51bb898558SAl Viro unsigned long, unsigned long, unsigned long); 52bb898558SAl Viro 53bb898558SAl Viro #endif /* CONFIG_X86_32 */ 54bb898558SAl Viro #endif /* _ASM_X86_SYSCALLS_H */ 55