diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-11-20 01:17:01 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-17 22:47:25 +0100 |
commit | 98c3115a4ec56f03056efd9295e0fcb4c5c57a85 (patch) | |
tree | 35959e80684489d393f8739bca2733350c694f18 /arch | |
parent | Move EM_XTENSA to uapi/linux/elf-em.h (diff) | |
download | linux-98c3115a4ec56f03056efd9295e0fcb4c5c57a85.tar.xz linux-98c3115a4ec56f03056efd9295e0fcb4c5c57a85.zip |
xtensa: define syscall_get_arch()
syscall_get_arch() is required to be implemented on all architectures
in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO
request.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/include/asm/syscall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/syscall.h b/arch/xtensa/include/asm/syscall.h index d98e0303917d..6969956d3f93 100644 --- a/arch/xtensa/include/asm/syscall.h +++ b/arch/xtensa/include/asm/syscall.h @@ -10,6 +10,13 @@ #ifndef _ASM_SYSCALL_H #define _ASM_SYSCALL_H +#include <uapi/linux/audit.h> + +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_XTENSA; +} + struct pt_regs; asmlinkage long xtensa_rt_sigreturn(struct pt_regs*); |