csky: Implement ptrace regs and stack API
authorGuo Ren <ren_guo@c-sky.com>
Tue, 17 Dec 2019 06:57:22 +0000 (14:57 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Sun, 8 Mar 2020 12:55:14 +0000 (20:55 +0800)
commitbfe47f358ad298a1efb9b8f8299a81541d90df87
tree74753eeb05653cc8abd21004d4a4b71feaa85e66
parent12879bda3c2a974b7e4fe199a9c21f0c5f6bca04
csky: Implement ptrace regs and stack API

Needed for kprobes support. Copied and adapted from Patrick's patch,
but it has been modified for csky's pt_regs.

ref:
https://lore.kernel.org/linux-riscv/1572919114-3886-2-git-send-email-vincent.chen@sifive.com/raw

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Patrick Staehlin <me@packi.ch>
arch/csky/Kconfig
arch/csky/include/asm/ptrace.h
arch/csky/kernel/ptrace.c