]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: expose syscall through user_pt_regs
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 19 Jul 2020 00:47:43 +0000 (17:47 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 28 Jul 2020 07:57:05 +0000 (00:57 -0700)
commit2659779715f4ab66654d5c1e6c446cd0f1a2a56d
treed74522605da28d8d06f4874f8f4822a9657adb78
parent0357ad1d2581a8cf502f561a02d40a3b7735a33f
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>
arch/xtensa/include/uapi/asm/ptrace.h
arch/xtensa/kernel/ptrace.c