diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:52 -0500 |
commit | 3cf0f4ece9f1680e54b154b1e38baaf6ace20a62 (patch) | |
tree | eaebb77428101f5093aa7c0fa8cbc008c9d61ba2 /arch/sh/kernel/ptrace.c | |
parent | 26ecbdea4bf46b0165db4aafd8e4981b4db53936 (diff) |
[PATCH] sh: task_pt_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/sh/kernel/ptrace.c')
-rw-r--r-- | arch/sh/kernel/ptrace.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/sh/kernel/ptrace.c b/arch/sh/kernel/ptrace.c index 1a8be06519ec..3887b4f6feb2 100644 --- a/arch/sh/kernel/ptrace.c +++ b/arch/sh/kernel/ptrace.c | |||
@@ -41,12 +41,7 @@ static inline int get_stack_long(struct task_struct *task, int offset) | |||
41 | { | 41 | { |
42 | unsigned char *stack; | 42 | unsigned char *stack; |
43 | 43 | ||
44 | stack = (unsigned char *) | 44 | stack = (unsigned char *)task_pt_regs(task); |
45 | task->thread_info + THREAD_SIZE - sizeof(struct pt_regs) | ||
46 | #ifdef CONFIG_SH_DSP | ||
47 | - sizeof(struct pt_dspregs) | ||
48 | #endif | ||
49 | - sizeof(unsigned long); | ||
50 | stack += offset; | 45 | stack += offset; |
51 | return (*((int *)stack)); | 46 | return (*((int *)stack)); |
52 | } | 47 | } |
@@ -59,12 +54,7 @@ static inline int put_stack_long(struct task_struct *task, int offset, | |||
59 | { | 54 | { |
60 | unsigned char *stack; | 55 | unsigned char *stack; |
61 | 56 | ||
62 | stack = (unsigned char *) | 57 | stack = (unsigned char *)task_pt_regs(task); |
63 | task->thread_info + THREAD_SIZE - sizeof(struct pt_regs) | ||
64 | #ifdef CONFIG_SH_DSP | ||
65 | - sizeof(struct pt_dspregs) | ||
66 | #endif | ||
67 | - sizeof(unsigned long); | ||
68 | stack += offset; | 58 | stack += offset; |
69 | *(unsigned long *) stack = data; | 59 | *(unsigned long *) stack = data; |
70 | return 0; | 60 | return 0; |