0001
0002 #ifndef __UM_ASM_SYSCALL_H
0003 #define __UM_ASM_SYSCALL_H
0004
0005 #include <asm/syscall-generic.h>
0006 #include <uapi/linux/audit.h>
0007
0008 typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
0009 unsigned long, unsigned long,
0010 unsigned long, unsigned long);
0011
0012 static inline int syscall_get_arch(struct task_struct *task)
0013 {
0014 #ifdef CONFIG_X86_32
0015 return AUDIT_ARCH_I386;
0016 #else
0017 return AUDIT_ARCH_X86_64;
0018 #endif
0019 }
0020
0021 #endif