xref: /linux/arch/x86/include/asm/syscalls.h (revision 44f57d78)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * syscalls.h - Linux syscall interfaces (arch-specific)
4  *
5  * Copyright (c) 2008 Jaswinder Singh Rajput
6  */
7 
8 #ifndef _ASM_X86_SYSCALLS_H
9 #define _ASM_X86_SYSCALLS_H
10 
11 #include <linux/compiler.h>
12 #include <linux/linkage.h>
13 #include <linux/signal.h>
14 #include <linux/types.h>
15 
16 /* Common in X86_32 and X86_64 */
17 /* kernel/ioport.c */
18 long ksys_ioperm(unsigned long from, unsigned long num, int turn_on);
19 
20 #ifdef CONFIG_X86_32
21 /*
22  * These definitions are only valid on pure 32-bit systems; x86-64 uses a
23  * different syscall calling convention
24  */
25 asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
26 asmlinkage long sys_iopl(unsigned int);
27 
28 /* kernel/ldt.c */
29 asmlinkage long sys_modify_ldt(int, void __user *, unsigned long);
30 
31 /* kernel/signal.c */
32 asmlinkage long sys_rt_sigreturn(void);
33 
34 /* kernel/tls.c */
35 asmlinkage long sys_set_thread_area(struct user_desc __user *);
36 asmlinkage long sys_get_thread_area(struct user_desc __user *);
37 
38 /* X86_32 only */
39 
40 /* kernel/signal.c */
41 asmlinkage long sys_sigreturn(void);
42 
43 /* kernel/vm86_32.c */
44 struct vm86_struct;
45 asmlinkage long sys_vm86old(struct vm86_struct __user *);
46 asmlinkage long sys_vm86(unsigned long, unsigned long);
47 
48 #endif /* CONFIG_X86_32 */
49 #endif /* _ASM_X86_SYSCALLS_H */
50