From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c (limited to 'ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c') diff --git a/ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c b/ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c new file mode 100644 index 00000000..4754ba0f --- /dev/null +++ b/ANDROID_3.4.5/arch/x86/ia32/syscall_ia32.c @@ -0,0 +1,25 @@ +/* System call table for ia32 emulation. */ + +#include +#include +#include +#include + +#define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void compat(void) ; +#include +#undef __SYSCALL_I386 + +#define __SYSCALL_I386(nr, sym, compat) [nr] = compat, + +typedef void (*sys_call_ptr_t)(void); + +extern void compat_ni_syscall(void); + +const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = { + /* + * Smells like a compiler bug -- it doesn't work + * when the & below is removed. + */ + [0 ... __NR_ia32_syscall_max] = &compat_ni_syscall, +#include +}; -- cgit