1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 24b4665e1SEric Paris #ifndef __UM_ASM_SYSCALL_H 34b4665e1SEric Paris #define __UM_ASM_SYSCALL_H 44b4665e1SEric Paris 5d8f8b844SMickaël Salaün #include <asm/syscall-generic.h> 64b4665e1SEric Paris #include <uapi/linux/audit.h> 74b4665e1SEric Paris 8612bece6SAndy Lutomirski typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, 9612bece6SAndy Lutomirski unsigned long, unsigned long, 10612bece6SAndy Lutomirski unsigned long, unsigned long); 11612bece6SAndy Lutomirski syscall_get_arch(struct task_struct * task)12*16add411SDmitry V. Levinstatic inline int syscall_get_arch(struct task_struct *task) 134b4665e1SEric Paris { 144b4665e1SEric Paris #ifdef CONFIG_X86_32 154b4665e1SEric Paris return AUDIT_ARCH_I386; 164b4665e1SEric Paris #else 174b4665e1SEric Paris return AUDIT_ARCH_X86_64; 184b4665e1SEric Paris #endif 194b4665e1SEric Paris } 204b4665e1SEric Paris 214b4665e1SEric Paris #endif /* __UM_ASM_SYSCALL_H */ 22