aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/uapi
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-07-18 17:47:43 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2020-07-28 00:57:05 -0700
commit8b7a87a03f7c15c7a1e1647c3527292604e80f6f (patch)
treed74522605da28d8d06f4874f8f4822a9657adb78 /arch/xtensa/include/uapi
parentxtensa: add audit support (diff)
downloadlinux-dev-8b7a87a03f7c15c7a1e1647c3527292604e80f6f.tar.xz
linux-dev-8b7a87a03f7c15c7a1e1647c3527292604e80f6f.zip
xtensa: expose syscall through user_pt_regs
Use one of the reserved slots in struct user_pt_regs to return syscall number in the GPR regset. Update syscall number from the GPR regset only when it's non-zero. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/uapi')
-rw-r--r--arch/xtensa/include/uapi/asm/ptrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/xtensa/include/uapi/asm/ptrace.h b/arch/xtensa/include/uapi/asm/ptrace.h
index 2ec0f9100a06..50db3e0a6341 100644
--- a/arch/xtensa/include/uapi/asm/ptrace.h
+++ b/arch/xtensa/include/uapi/asm/ptrace.h
@@ -50,7 +50,8 @@ struct user_pt_regs {
__u32 windowstart;
__u32 windowbase;
__u32 threadptr;
- __u32 reserved[7 + 48];
+ __u32 syscall;
+ __u32 reserved[6 + 48];
__u32 a[64];
};