162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __UM_ASM_SYSCALL_H 362306a36Sopenharmony_ci#define __UM_ASM_SYSCALL_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/syscall-generic.h> 662306a36Sopenharmony_ci#include <uapi/linux/audit.h> 762306a36Sopenharmony_ci 862306a36Sopenharmony_citypedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, 962306a36Sopenharmony_ci unsigned long, unsigned long, 1062306a36Sopenharmony_ci unsigned long, unsigned long); 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic inline int syscall_get_arch(struct task_struct *task) 1362306a36Sopenharmony_ci{ 1462306a36Sopenharmony_ci#ifdef CONFIG_X86_32 1562306a36Sopenharmony_ci return AUDIT_ARCH_I386; 1662306a36Sopenharmony_ci#else 1762306a36Sopenharmony_ci return AUDIT_ARCH_X86_64; 1862306a36Sopenharmony_ci#endif 1962306a36Sopenharmony_ci} 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#endif /* __UM_ASM_SYSCALL_H */ 22