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>
This commit is contained in:
parent
b61c41c28e
commit
98c3115a4e
|
@ -10,6 +10,13 @@
|
||||||
#ifndef _ASM_SYSCALL_H
|
#ifndef _ASM_SYSCALL_H
|
||||||
#define _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;
|
struct pt_regs;
|
||||||
|
|
||||||
asmlinkage long xtensa_rt_sigreturn(struct pt_regs*);
|
asmlinkage long xtensa_rt_sigreturn(struct pt_regs*);
|
||||||
|
|
|
@ -411,6 +411,7 @@ enum {
|
||||||
#define AUDIT_ARCH_TILEGX32 (EM_TILEGX|__AUDIT_ARCH_LE)
|
#define AUDIT_ARCH_TILEGX32 (EM_TILEGX|__AUDIT_ARCH_LE)
|
||||||
#define AUDIT_ARCH_TILEPRO (EM_TILEPRO|__AUDIT_ARCH_LE)
|
#define AUDIT_ARCH_TILEPRO (EM_TILEPRO|__AUDIT_ARCH_LE)
|
||||||
#define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
|
#define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
|
||||||
|
#define AUDIT_ARCH_XTENSA (EM_XTENSA)
|
||||||
|
|
||||||
#define AUDIT_PERM_EXEC 1
|
#define AUDIT_PERM_EXEC 1
|
||||||
#define AUDIT_PERM_WRITE 2
|
#define AUDIT_PERM_WRITE 2
|
||||||
|
|
Loading…
Reference in New Issue