2008-07-21 20:04:13 +04:00
|
|
|
/*
|
|
|
|
* syscalls.h - Linux syscall interfaces (arch-specific)
|
|
|
|
*
|
2009-04-10 22:33:10 +04:00
|
|
|
* Copyright (c) 2008 Jaswinder Singh Rajput
|
2008-07-21 20:04:13 +04:00
|
|
|
*
|
|
|
|
* This file is released under the GPLv2.
|
|
|
|
* See the file COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_X86_SYSCALLS_H
|
|
|
|
#define _ASM_X86_SYSCALLS_H
|
|
|
|
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/signal.h>
|
2009-04-10 22:33:10 +04:00
|
|
|
#include <linux/types.h>
|
2008-07-21 20:04:13 +04:00
|
|
|
|
|
|
|
/* Common in X86_32 and X86_64 */
|
|
|
|
/* kernel/ioport.c */
|
|
|
|
asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
|
2012-11-20 07:00:52 +04:00
|
|
|
asmlinkage long sys_iopl(unsigned int);
|
2008-07-21 20:04:13 +04:00
|
|
|
|
2008-12-15 19:56:30 +03:00
|
|
|
/* kernel/ldt.c */
|
|
|
|
asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
|
|
|
|
|
2009-04-10 22:33:10 +04:00
|
|
|
/* kernel/signal.c */
|
2013-08-06 02:02:40 +04:00
|
|
|
asmlinkage long sys_rt_sigreturn(void);
|
2009-04-10 22:33:10 +04:00
|
|
|
|
2008-12-17 20:48:52 +03:00
|
|
|
/* kernel/tls.c */
|
2013-01-22 00:25:54 +04:00
|
|
|
asmlinkage long sys_set_thread_area(struct user_desc __user *);
|
|
|
|
asmlinkage long sys_get_thread_area(struct user_desc __user *);
|
2008-12-17 20:48:52 +03:00
|
|
|
|
2008-07-21 20:04:13 +04:00
|
|
|
/* X86_32 only */
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
|
2009-04-10 22:33:10 +04:00
|
|
|
/* kernel/signal.c */
|
2013-08-06 02:02:40 +04:00
|
|
|
asmlinkage unsigned long sys_sigreturn(void);
|
2008-07-21 20:04:13 +04:00
|
|
|
|
2008-07-23 16:01:02 +04:00
|
|
|
/* kernel/vm86_32.c */
|
2013-03-28 01:18:05 +04:00
|
|
|
asmlinkage long sys_vm86old(struct vm86_struct __user *);
|
|
|
|
asmlinkage long sys_vm86(unsigned long, unsigned long);
|
2008-07-23 16:01:02 +04:00
|
|
|
|
2008-07-21 20:04:13 +04:00
|
|
|
#else /* CONFIG_X86_32 */
|
|
|
|
|
|
|
|
/* X86_64 only */
|
|
|
|
/* kernel/process_64.c */
|
2013-08-06 02:02:40 +04:00
|
|
|
asmlinkage long sys_arch_prctl(int, unsigned long);
|
2008-07-21 20:04:13 +04:00
|
|
|
|
|
|
|
/* kernel/sys_x86_64.c */
|
|
|
|
asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
|
|
|
|
unsigned long, unsigned long, unsigned long);
|
|
|
|
|
|
|
|
#endif /* CONFIG_X86_32 */
|
|
|
|
#endif /* _ASM_X86_SYSCALLS_H */
|