summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/kernel/ptrace.c
diff options
context:
space:
mode:
authorRichard Kuo2012-03-28 00:38:09 +0200
committerRichard Kuo2013-05-01 02:40:23 +0200
commit60c4ba99e015afe879c2682967c8ca8d233f6d3c (patch)
treeddf41e569dd852c627ad8008b756d224694861c5 /arch/hexagon/kernel/ptrace.c
parentHexagon: add individual register access for switch_stack (diff)
downloadkernel-qcow2-linux-60c4ba99e015afe879c2682967c8ca8d233f6d3c.tar.gz
kernel-qcow2-linux-60c4ba99e015afe879c2682967c8ca8d233f6d3c.tar.xz
kernel-qcow2-linux-60c4ba99e015afe879c2682967c8ca8d233f6d3c.zip
Hexagon: add support for new v4+ registers
Add support for a couple new v4+ registers, along with newer save/restore pt_regs. Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon/kernel/ptrace.c')
-rw-r--r--arch/hexagon/kernel/ptrace.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/ptrace.c b/arch/hexagon/kernel/ptrace.c
index 670b1b0bee63..3982d9c9ec2b 100644
--- a/arch/hexagon/kernel/ptrace.c
+++ b/arch/hexagon/kernel/ptrace.c
@@ -76,6 +76,10 @@ static int genregs_get(struct task_struct *target,
dummy = pt_cause(regs);
ONEXT(&dummy, cause);
ONEXT(&pt_badva(regs), badva);
+#if CONFIG_HEXAGON_ARCH_VERSION >=4
+ ONEXT(&regs->cs0, cs0);
+ ONEXT(&regs->cs1, cs1);
+#endif
/* Pad the rest with zeros, if needed */
if (!ret)
@@ -123,6 +127,11 @@ static int genregs_set(struct task_struct *target,
INEXT(&bucket, cause);
INEXT(&bucket, badva);
+#if CONFIG_HEXAGON_ARCH_VERSION >=4
+ INEXT(&regs->cs0, cs0);
+ INEXT(&regs->cs1, cs1);
+#endif
+
/* Ignore the rest, if needed */
if (!ret)
ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf,