diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-11-10 04:32:06 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-12-17 22:48:21 +0100 |
commit | 06fbac8e8971f2fa526e189304dd95ee62f39dbe (patch) | |
tree | 16618a31098c5838d59e37b5da5d1e63da4b596e /arch/xtensa/include/uapi/asm | |
parent | xtensa: call do_syscall_trace_{enter,leave} selectively (diff) | |
download | linux-06fbac8e8971f2fa526e189304dd95ee62f39dbe.tar.xz linux-06fbac8e8971f2fa526e189304dd95ee62f39dbe.zip |
xtensa: implement task_user_regset_view
- define struct user_pt_regs in the arch/xtensa/include/uapi/asm/ptrace.h
with the same layout as xtensa_gregset_t; make xtensa_gregset_t a
typedef;
- define REGSET_GPR regset, implement register get and set functions;
- define task_user_regset_view function and expose REGSET_GPR.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/uapi/asm')
-rw-r--r-- | arch/xtensa/include/uapi/asm/ptrace.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/arch/xtensa/include/uapi/asm/ptrace.h b/arch/xtensa/include/uapi/asm/ptrace.h index a10b42963703..2ec0f9100a06 100644 --- a/arch/xtensa/include/uapi/asm/ptrace.h +++ b/arch/xtensa/include/uapi/asm/ptrace.h @@ -12,6 +12,8 @@ #ifndef _UAPI_XTENSA_PTRACE_H #define _UAPI_XTENSA_PTRACE_H +#include <linux/types.h> + /* Registers used by strace */ #define REG_A_BASE 0x0000 @@ -36,5 +38,21 @@ #define PTRACE_GETHBPREGS 20 #define PTRACE_SETHBPREGS 21 - +#ifndef __ASSEMBLY__ + +struct user_pt_regs { + __u32 pc; + __u32 ps; + __u32 lbeg; + __u32 lend; + __u32 lcount; + __u32 sar; + __u32 windowstart; + __u32 windowbase; + __u32 threadptr; + __u32 reserved[7 + 48]; + __u32 a[64]; +}; + +#endif #endif /* _UAPI_XTENSA_PTRACE_H */ |