aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJaswinder Singh <jaswinder@infradead.org>2008-07-21 12:04:13 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-22 08:35:57 -0400
commitbbc1f698a508927d21324b57500e863f9bd562b9 (patch)
tree6208bfd7fb61d01a4cbe43c872f29caa85cae26e /include
parent93ded9b8fd42abe2c3607097963d8de6ad9117eb (diff)
x86: Introducing asm/syscalls.h
Declaring arch-dependent syscalls for x86 architecture Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/syscalls.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/include/asm-x86/syscalls.h b/include/asm-x86/syscalls.h
new file mode 100644
index 000000000000..170fcb132f53
--- /dev/null
+++ b/include/asm-x86/syscalls.h
@@ -0,0 +1,90 @@
1/*
2 * syscalls.h - Linux syscall interfaces (arch-specific)
3 *
4 * Copyright (c) 2008 Jaswinder Singh
5 *
6 * This file is released under the GPLv2.
7 * See the file COPYING for more details.
8 *
9 * Please do not call me directly, include linux/syscalls.h
10 */
11
12#ifndef _ASM_X86_SYSCALLS_H
13#define _ASM_X86_SYSCALLS_H
14
15#include <linux/compiler.h>
16#include <linux/linkage.h>
17#include <linux/types.h>
18#include <linux/signal.h>
19
20/* Common in X86_32 and X86_64 */
21/* kernel/ioport.c */
22asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
23
24/* X86_32 only */
25#ifdef CONFIG_X86_32
26/* kernel/process_32.c */
27asmlinkage int sys_fork(struct pt_regs);
28asmlinkage int sys_clone(struct pt_regs);
29asmlinkage int sys_vfork(struct pt_regs);
30asmlinkage int sys_execve(struct pt_regs);
31
32/* kernel/signal_32.c */
33asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
34asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
35 struct old_sigaction __user *);
36asmlinkage int sys_sigaltstack(unsigned long);
37asmlinkage unsigned long sys_sigreturn(unsigned long);
38asmlinkage int sys_rt_sigreturn(unsigned long);
39
40/* kernel/ioport.c */
41asmlinkage long sys_iopl(unsigned long);
42
43/* kernel/ldt.c */
44asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
45
46/* kernel/sys_i386_32.c */
47asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
48 unsigned long, unsigned long, unsigned long);
49struct mmap_arg_struct;
50asmlinkage int old_mmap(struct mmap_arg_struct __user *);
51struct sel_arg_struct;
52asmlinkage int old_select(struct sel_arg_struct __user *);
53asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
54struct old_utsname;
55asmlinkage int sys_uname(struct old_utsname __user *);
56struct oldold_utsname;
57asmlinkage int sys_olduname(struct oldold_utsname __user *);
58
59/* kernel/tls.c */
60asmlinkage int sys_set_thread_area(struct user_desc __user *);
61asmlinkage int sys_get_thread_area(struct user_desc __user *);
62
63#else /* CONFIG_X86_32 */
64
65/* X86_64 only */
66/* kernel/process_64.c */
67asmlinkage long sys_fork(struct pt_regs *);
68asmlinkage long sys_clone(unsigned long, unsigned long,
69 void __user *, void __user *,
70 struct pt_regs *);
71asmlinkage long sys_vfork(struct pt_regs *);
72asmlinkage long sys_execve(char __user *, char __user * __user *,
73 char __user * __user *,
74 struct pt_regs *);
75
76/* kernel/ioport.c */
77asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
78
79/* kernel/signal_64.c */
80asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
81 struct pt_regs *);
82asmlinkage long sys_rt_sigreturn(struct pt_regs *);
83
84/* kernel/sys_x86_64.c */
85asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
86 unsigned long, unsigned long, unsigned long);
87asmlinkage long sys_uname(struct new_utsname __user *);
88
89#endif /* CONFIG_X86_32 */
90#endif /* _ASM_X86_SYSCALLS_H */