]>
Commit | Line | Data |
---|---|---|
52a6e82a | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
bbc1f698 JS |
2 | /* |
3 | * syscalls.h - Linux syscall interfaces (arch-specific) | |
4 | * | |
2c1b284e | 5 | * Copyright (c) 2008 Jaswinder Singh Rajput |
bbc1f698 JS |
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> | |
bbc1f698 | 13 | #include <linux/signal.h> |
2c1b284e | 14 | #include <linux/types.h> |
bbc1f698 JS |
15 | |
16 | /* Common in X86_32 and X86_64 */ | |
17 | /* kernel/ioport.c */ | |
66f4e88c | 18 | long ksys_ioperm(unsigned long from, unsigned long num, int turn_on); |
fa697140 | 19 | |
f8781c4a | 20 | #ifdef CONFIG_X86_32 |
5ac9efa3 | 21 | /* |
f8781c4a DB |
22 | * These definitions are only valid on pure 32-bit systems; x86-64 uses a |
23 | * different syscall calling convention | |
fa697140 | 24 | */ |
bbc1f698 | 25 | asmlinkage long sys_ioperm(unsigned long, unsigned long, int); |
b3af11af | 26 | asmlinkage long sys_iopl(unsigned int); |
bbc1f698 | 27 | |
c0195b6d | 28 | /* kernel/ldt.c */ |
da20ab35 | 29 | asmlinkage long sys_modify_ldt(int, void __user *, unsigned long); |
c0195b6d | 30 | |
2c1b284e | 31 | /* kernel/signal.c */ |
ff49103f | 32 | asmlinkage long sys_rt_sigreturn(void); |
2c1b284e | 33 | |
7c9c160c | 34 | /* kernel/tls.c */ |
2cf09666 AV |
35 | asmlinkage long sys_set_thread_area(struct user_desc __user *); |
36 | asmlinkage long sys_get_thread_area(struct user_desc __user *); | |
7c9c160c | 37 | |
bbc1f698 | 38 | /* X86_32 only */ |
bbc1f698 | 39 | |
2c1b284e | 40 | /* kernel/signal.c */ |
025bd390 | 41 | asmlinkage long sys_sigreturn(void); |
bbc1f698 | 42 | |
8f7db518 | 43 | /* kernel/vm86_32.c */ |
ba3e127e | 44 | struct vm86_struct; |
5522ddb3 AH |
45 | asmlinkage long sys_vm86old(struct vm86_struct __user *); |
46 | asmlinkage long sys_vm86(unsigned long, unsigned long); | |
8f7db518 | 47 | |
bbc1f698 JS |
48 | #endif /* CONFIG_X86_32 */ |
49 | #endif /* _ASM_X86_SYSCALLS_H */ |