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 */ 20*66f4e88cSDominik Brodowski long ksys_ioperm(unsigned long from, unsigned long num, int turn_on); 21bb898558SAl Viro asmlinkage long sys_ioperm(unsigned long, unsigned long, int); 22b3af11afSAl Viro asmlinkage long sys_iopl(unsigned int); 23bb898558SAl Viro 24c0195b6dSJaswinder Singh /* kernel/ldt.c */ 25da20ab35SDave Hansen asmlinkage long sys_modify_ldt(int, void __user *, unsigned long); 26c0195b6dSJaswinder Singh 272c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 28ff49103fSAndi Kleen asmlinkage long sys_rt_sigreturn(void); 292c1b284eSJaswinder Singh Rajput 307c9c160cSJaswinder Singh /* kernel/tls.c */ 312cf09666SAl Viro asmlinkage long sys_set_thread_area(struct user_desc __user *); 322cf09666SAl Viro asmlinkage long sys_get_thread_area(struct user_desc __user *); 337c9c160cSJaswinder Singh 34bb898558SAl Viro /* X86_32 only */ 35bb898558SAl Viro #ifdef CONFIG_X86_32 36bb898558SAl Viro 372c1b284eSJaswinder Singh Rajput /* kernel/signal.c */ 38ff49103fSAndi Kleen asmlinkage unsigned long sys_sigreturn(void); 39bb898558SAl Viro 40bb898558SAl Viro /* kernel/vm86_32.c */ 41ba3e127eSBrian Gerst struct vm86_struct; 425522ddb3SAlexander van Heukelum asmlinkage long sys_vm86old(struct vm86_struct __user *); 435522ddb3SAlexander van Heukelum asmlinkage long sys_vm86(unsigned long, unsigned long); 44bb898558SAl Viro 45bb898558SAl Viro #else /* CONFIG_X86_32 */ 46bb898558SAl Viro 47bb898558SAl Viro /* X86_64 only */ 48bb898558SAl Viro /* kernel/process_64.c */ 49ff49103fSAndi Kleen asmlinkage long sys_arch_prctl(int, unsigned long); 50bb898558SAl Viro 51bb898558SAl Viro /* kernel/sys_x86_64.c */ 52bb898558SAl Viro asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long, 53bb898558SAl Viro unsigned long, unsigned long, unsigned long); 54bb898558SAl Viro 55bb898558SAl Viro #endif /* CONFIG_X86_32 */ 56bb898558SAl Viro #endif /* _ASM_X86_SYSCALLS_H */ 57