blob: 11ab90dc5f14e95b521ee389e800f8abcfba0ca6 [file] [log] [blame]
Eric Paris4b4665e2014-03-18 15:35:57 -04001#ifndef __UM_ASM_SYSCALL_H
2#define __UM_ASM_SYSCALL_H
3
Mickaël Salaünd8f8b842015-12-29 21:35:46 +01004#include <asm/syscall-generic.h>
Eric Paris4b4665e2014-03-18 15:35:57 -04005#include <uapi/linux/audit.h>
6
Andy Lutomirski612bece2015-10-12 17:32:14 -07007typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
8 unsigned long, unsigned long,
9 unsigned long, unsigned long);
10
Eric Paris4b4665e2014-03-18 15:35:57 -040011static inline int syscall_get_arch(void)
12{
13#ifdef CONFIG_X86_32
14 return AUDIT_ARCH_I386;
15#else
16 return AUDIT_ARCH_X86_64;
17#endif
18}
19
20#endif /* __UM_ASM_SYSCALL_H */