xref: /openbmc/linux/arch/x86/include/asm/syscalls.h (revision ba3e127ec105e790eeec4034d9769e018e4a1b54)
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 */
27ff49103fSAndi Kleen asmlinkage long sys_rt_sigreturn(void);
282c1b284eSJaswinder Singh Rajput 
297c9c160cSJaswinder Singh /* kernel/tls.c */
302cf09666SAl Viro asmlinkage long sys_set_thread_area(struct user_desc __user *);
312cf09666SAl 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 */
37ff49103fSAndi Kleen asmlinkage unsigned long sys_sigreturn(void);
38bb898558SAl Viro 
39bb898558SAl Viro /* kernel/vm86_32.c */
40*ba3e127eSBrian Gerst struct vm86_struct;
415522ddb3SAlexander van Heukelum asmlinkage long sys_vm86old(struct vm86_struct __user *);
425522ddb3SAlexander van Heukelum asmlinkage long sys_vm86(unsigned long, unsigned long);
43bb898558SAl Viro 
44bb898558SAl Viro #else /* CONFIG_X86_32 */
45bb898558SAl Viro 
46bb898558SAl Viro /* X86_64 only */
47bb898558SAl Viro /* kernel/process_64.c */
48ff49103fSAndi Kleen asmlinkage long sys_arch_prctl(int, unsigned long);
49bb898558SAl Viro 
50bb898558SAl Viro /* kernel/sys_x86_64.c */
51bb898558SAl Viro asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
52bb898558SAl Viro 			 unsigned long, unsigned long, unsigned long);
53bb898558SAl Viro 
54bb898558SAl Viro #endif /* CONFIG_X86_32 */
55bb898558SAl Viro #endif /* _ASM_X86_SYSCALLS_H */
56