Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116128
b: refs/heads/master
c: 7246199
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 12, 2008
1 parent b9acfa5 commit cf95d0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9540ececaa2cf94b6760741c82f25097e662383
refs/heads/master: 72461997c3c66c29775afa68ca31bea16bf17f39
9 changes: 9 additions & 0 deletions trunk/arch/sh/kernel/ptrace_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ static int dspregs_set(struct task_struct *target,

return ret;
}

static int dspregs_active(struct task_struct *target,
const struct user_regset *regset)
{
struct pt_regs *regs = task_pt_regs(target);

return regs->sr & SR_DSP ? regset->n : 0;
}
#endif

/*
Expand Down Expand Up @@ -213,6 +221,7 @@ static const struct user_regset sh_regsets[] = {
.align = sizeof(long),
.get = dspregs_get,
.set = dspregs_set,
.active = dspregs_active,
},
#endif
};
Expand Down

0 comments on commit cf95d0b

Please sign in to comment.