18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __UM_ASM_SYSCALL_H 38c2ecf20Sopenharmony_ci#define __UM_ASM_SYSCALL_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/syscall-generic.h> 68c2ecf20Sopenharmony_ci#include <uapi/linux/audit.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_citypedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, 98c2ecf20Sopenharmony_ci unsigned long, unsigned long, 108c2ecf20Sopenharmony_ci unsigned long, unsigned long); 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cistatic inline int syscall_get_arch(struct task_struct *task) 138c2ecf20Sopenharmony_ci{ 148c2ecf20Sopenharmony_ci#ifdef CONFIG_X86_32 158c2ecf20Sopenharmony_ci return AUDIT_ARCH_I386; 168c2ecf20Sopenharmony_ci#else 178c2ecf20Sopenharmony_ci return AUDIT_ARCH_X86_64; 188c2ecf20Sopenharmony_ci#endif 198c2ecf20Sopenharmony_ci} 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* __UM_ASM_SYSCALL_H */ 22