1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * syscalls.h - Linux syscall interfaces (arch-specific)
5 * Copyright (c) 2008 Jaswinder Singh Rajput
8 #ifndef _ASM_X86_SYSCALLS_H
9 #define _ASM_X86_SYSCALLS_H
11 #include <linux/compiler.h>
12 #include <linux/linkage.h>
13 #include <linux/signal.h>
14 #include <linux/types.h>
16 /* Common in X86_32 and X86_64 */
18 long ksys_ioperm(unsigned long from
, unsigned long num
, int turn_on
);
22 * These definitions are only valid on pure 32-bit systems; x86-64 uses a
23 * different syscall calling convention
25 asmlinkage
long sys_ioperm(unsigned long, unsigned long, int);
26 asmlinkage
long sys_iopl(unsigned int);
29 asmlinkage
long sys_modify_ldt(int, void __user
*, unsigned long);
32 asmlinkage
long sys_rt_sigreturn(void);
35 asmlinkage
long sys_set_thread_area(struct user_desc __user
*);
36 asmlinkage
long sys_get_thread_area(struct user_desc __user
*);
41 asmlinkage
long sys_sigreturn(void);
43 /* kernel/vm86_32.c */
45 asmlinkage
long sys_vm86old(struct vm86_struct __user
*);
46 asmlinkage
long sys_vm86(unsigned long, unsigned long);
48 #endif /* CONFIG_X86_32 */
49 #endif /* _ASM_X86_SYSCALLS_H */