blob: 76be6f2d980c44360aa56ce8951708871141581a [file] [log] [blame]
Jaswinder Singhbbc1f692008-07-21 21:34:13 +05301/*
2 * syscalls.h - Linux syscall interfaces (arch-specific)
3 *
Jaswinder Singh Rajput2c1b2842009-04-11 00:03:10 +05304 * Copyright (c) 2008 Jaswinder Singh Rajput
Jaswinder Singhbbc1f692008-07-21 21:34:13 +05305 *
6 * This file is released under the GPLv2.
7 * See the file COPYING for more details.
Jaswinder Singhbbc1f692008-07-21 21:34:13 +05308 */
9
10#ifndef _ASM_X86_SYSCALLS_H
11#define _ASM_X86_SYSCALLS_H
12
13#include <linux/compiler.h>
14#include <linux/linkage.h>
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053015#include <linux/signal.h>
Jaswinder Singh Rajput2c1b2842009-04-11 00:03:10 +053016#include <linux/types.h>
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053017
18/* Common in X86_32 and X86_64 */
19/* kernel/ioport.c */
20asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
Al Virob3af11a2012-11-19 22:00:52 -050021asmlinkage long sys_iopl(unsigned int);
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053022
Jaswinder Singhc0195b62008-12-15 22:26:30 +053023/* kernel/ldt.c */
24asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
25
Jaswinder Singh Rajput2c1b2842009-04-11 00:03:10 +053026/* kernel/signal.c */
27long sys_rt_sigreturn(struct pt_regs *);
28
Jaswinder Singh7c9c1602008-12-17 23:18:52 +053029/* kernel/tls.c */
30asmlinkage int sys_set_thread_area(struct user_desc __user *);
31asmlinkage int sys_get_thread_area(struct user_desc __user *);
32
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053033/* X86_32 only */
34#ifdef CONFIG_X86_32
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053035
Jaswinder Singh Rajput2c1b2842009-04-11 00:03:10 +053036/* kernel/signal.c */
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053037asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
38asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
39 struct old_sigaction __user *);
Brian Gerstb12bdaf2009-02-11 16:43:58 -050040unsigned long sys_sigreturn(struct pt_regs *);
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053041
Jaswinder Singh8f7db512008-07-23 17:31:02 +053042/* kernel/vm86_32.c */
Brian Gerstf1382f12009-12-09 19:01:55 -050043int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
44int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
Jaswinder Singh8f7db512008-07-23 17:31:02 +053045
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053046#else /* CONFIG_X86_32 */
47
48/* X86_64 only */
49/* kernel/process_64.c */
Jaswinder Singh Rajput8d4b4982009-02-02 21:48:33 +053050long sys_arch_prctl(int, unsigned long);
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053051
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053052/* kernel/sys_x86_64.c */
53asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
54 unsigned long, unsigned long, unsigned long);
Jaswinder Singhbbc1f692008-07-21 21:34:13 +053055
56#endif /* CONFIG_X86_32 */
57#endif /* _ASM_X86_SYSCALLS_H */