Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __UM_ASM_SYSCALL_H |
| 3 | #define __UM_ASM_SYSCALL_H |
| 4 | |
| 5 | #include <asm/syscall-generic.h> |
| 6 | #include <uapi/linux/audit.h> |
| 7 | |
| 8 | typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, |
| 9 | unsigned long, unsigned long, |
| 10 | unsigned long, unsigned long); |
| 11 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 12 | static inline int syscall_get_arch(struct task_struct *task) |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | { |
| 14 | #ifdef CONFIG_X86_32 |
| 15 | return AUDIT_ARCH_I386; |
| 16 | #else |
| 17 | return AUDIT_ARCH_X86_64; |
| 18 | #endif |
| 19 | } |
| 20 | |
| 21 | #endif /* __UM_ASM_SYSCALL_H */ |