Eric Paris | 4b4665e | 2014-03-18 15:35:57 -0400 | [diff] [blame] | 1 | #ifndef __UM_ASM_SYSCALL_H |
| 2 | #define __UM_ASM_SYSCALL_H |
| 3 | |
| 4 | #include <uapi/linux/audit.h> |
| 5 | |
Andy Lutomirski | 612bece | 2015-10-12 17:32:14 -0700 | [diff] [blame] | 6 | typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, |
| 7 | unsigned long, unsigned long, |
| 8 | unsigned long, unsigned long); |
| 9 | |
Eric Paris | 4b4665e | 2014-03-18 15:35:57 -0400 | [diff] [blame] | 10 | static inline int syscall_get_arch(void) |
| 11 | { |
| 12 | #ifdef CONFIG_X86_32 |
| 13 | return AUDIT_ARCH_I386; |
| 14 | #else |
| 15 | return AUDIT_ARCH_X86_64; |
| 16 | #endif |
| 17 | } |
| 18 | |
| 19 | #endif /* __UM_ASM_SYSCALL_H */ |