aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/kernel/ptrace_32.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c
index 92fe2034f74a..0f44f2b51a60 100644
--- a/arch/sh/kernel/ptrace_32.c
+++ b/arch/sh/kernel/ptrace_32.c
@@ -179,6 +179,14 @@ static int dspregs_set(struct task_struct *target,
179 179
180 return ret; 180 return ret;
181} 181}
182
183static int dspregs_active(struct task_struct *target,
184 const struct user_regset *regset)
185{
186 struct pt_regs *regs = task_pt_regs(target);
187
188 return regs->sr & SR_DSP ? regset->n : 0;
189}
182#endif 190#endif
183 191
184/* 192/*
@@ -213,6 +221,7 @@ static const struct user_regset sh_regsets[] = {
213 .align = sizeof(long), 221 .align = sizeof(long),
214 .get = dspregs_get, 222 .get = dspregs_get,
215 .set = dspregs_set, 223 .set = dspregs_set,
224 .active = dspregs_active,
216 }, 225 },
217#endif 226#endif
218}; 227};