xref: /openbmc/linux/arch/x86/include/asm/syscalls.h (revision 52a6e82ac27288f591c750f201de5c3e6ef24385)
1*52a6e82aSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2bb898558SAl Viro /*
3bb898558SAl Viro  * syscalls.h - Linux syscall interfaces (arch-specific)
4bb898558SAl Viro  *
52c1b284eSJaswinder Singh Rajput  * Copyright (c) 2008 Jaswinder Singh Rajput
6bb898558SAl Viro  */
7bb898558SAl Viro 
8bb898558SAl Viro #ifndef _ASM_X86_SYSCALLS_H
9bb898558SAl Viro #define _ASM_X86_SYSCALLS_H
10bb898558SAl Viro 
11bb898558SAl Viro #include <linux/compiler.h>
12bb898558SAl Viro #include <linux/linkage.h>
13bb898558SAl Viro #include <linux/signal.h>
142c1b284eSJaswinder Singh Rajput #include <linux/types.h>
15bb898558SAl Viro 
16bb898558SAl Viro /* Common in X86_32 and X86_64 */
17bb898558SAl Viro /* kernel/ioport.c */
1866f4e88cSDominik Brodowski long ksys_ioperm(unsigned long from, unsigned long num, int turn_on);
19fa697140SDominik Brodowski 
20f8781c4aSDominik Brodowski #ifdef CONFIG_X86_32
21fa697140SDominik Brodowski /*
22f8781c4aSDominik Brodowski  * These definitions are only valid on pure 32-bit systems; x86-64 uses a
23f8781c4aSDominik Brodowski  * different syscall calling convention
24fa697140SDominik Brodowski  */
25bb898558SAl Viro asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
26b3af11afSAl Viro asmlinkage long sys_iopl(unsigned int);
27bb898558SAl Viro 
28c0195b6dSJaswinder Singh /* kernel/ldt.c */
29da20ab35SDave Hansen asmlinkage long sys_modify_ldt(int, void __user *, unsigned long);
30c0195b6dSJaswinder Singh 
312c1b284eSJaswinder Singh Rajput /* kernel/signal.c */
32ff49103fSAndi Kleen asmlinkage long sys_rt_sigreturn(void);
332c1b284eSJaswinder Singh Rajput 
347c9c160cSJaswinder Singh /* kernel/tls.c */
352cf09666SAl Viro asmlinkage long sys_set_thread_area(struct user_desc __user *);
362cf09666SAl Viro asmlinkage long sys_get_thread_area(struct user_desc __user *);
377c9c160cSJaswinder Singh 
38bb898558SAl Viro /* X86_32 only */
39bb898558SAl Viro 
402c1b284eSJaswinder Singh Rajput /* kernel/signal.c */
41025bd390SDominik Brodowski asmlinkage long sys_sigreturn(void);
42bb898558SAl Viro 
43bb898558SAl Viro /* kernel/vm86_32.c */
44ba3e127eSBrian Gerst struct vm86_struct;
455522ddb3SAlexander van Heukelum asmlinkage long sys_vm86old(struct vm86_struct __user *);
465522ddb3SAlexander van Heukelum asmlinkage long sys_vm86(unsigned long, unsigned long);
47bb898558SAl Viro 
48bb898558SAl Viro #endif /* CONFIG_X86_32 */
49bb898558SAl Viro #endif /* _ASM_X86_SYSCALLS_H */
50