2011-11-11 17:07:41 -07:00
|
|
|
/* System call table for i386. */
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/sys.h>
|
|
|
|
#include <linux/cache.h>
|
|
|
|
#include <asm/asm-offsets.h>
|
2015-10-05 18:48:06 -06:00
|
|
|
#include <asm/syscall.h>
|
2011-11-11 17:07:41 -07:00
|
|
|
|
2016-01-28 16:11:24 -07:00
|
|
|
#define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
|
2011-11-11 17:07:41 -07:00
|
|
|
#include <asm/syscalls_32.h>
|
|
|
|
#undef __SYSCALL_I386
|
|
|
|
|
2016-01-28 16:11:24 -07:00
|
|
|
#define __SYSCALL_I386(nr, sym, qual) [nr] = sym,
|
2011-11-11 17:07:41 -07:00
|
|
|
|
2015-10-05 18:48:07 -06:00
|
|
|
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
|
2011-11-11 17:07:41 -07:00
|
|
|
|
2015-06-08 13:20:26 -06:00
|
|
|
__visible const sys_call_ptr_t ia32_sys_call_table[__NR_syscall_compat_max+1] = {
|
2011-11-11 17:07:41 -07:00
|
|
|
/*
|
2011-11-18 17:25:07 -07:00
|
|
|
* Smells like a compiler bug -- it doesn't work
|
2011-11-11 17:07:41 -07:00
|
|
|
* when the & below is removed.
|
|
|
|
*/
|
2015-06-08 13:20:26 -06:00
|
|
|
[0 ... __NR_syscall_compat_max] = &sys_ni_syscall,
|
2011-11-11 17:07:41 -07:00
|
|
|
#include <asm/syscalls_32.h>
|
|
|
|
};
|