diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:53 -0800 |
commit | 308a792f7c563a7af6e325274c63812f98988d6f (patch) | |
tree | dc69f570a04bbf43403dea756fca44a4a7d132fc /include/asm-sh/ptrace.h | |
parent | cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8 (diff) | |
download | kernel_samsung_crespo-308a792f7c563a7af6e325274c63812f98988d6f.zip kernel_samsung_crespo-308a792f7c563a7af6e325274c63812f98988d6f.tar.gz kernel_samsung_crespo-308a792f7c563a7af6e325274c63812f98988d6f.tar.bz2 |
[PATCH] sh: task_stack_page()
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 'include/asm-sh/ptrace.h')
-rw-r--r-- | include/asm-sh/ptrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/ptrace.h b/include/asm-sh/ptrace.h index 85aa0f4..792fc35 100644 --- a/include/asm-sh/ptrace.h +++ b/include/asm-sh/ptrace.h @@ -93,11 +93,11 @@ extern void show_regs(struct pt_regs *); #ifdef CONFIG_SH_DSP #define task_pt_regs(task) \ - ((struct pt_regs *) ((unsigned long)(task)->thread_info + THREAD_SIZE \ + ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \ - sizeof(struct pt_dspregs) - sizeof(unsigned long)) - 1) #else #define task_pt_regs(task) \ - ((struct pt_regs *) ((unsigned long)(task)->thread_info + THREAD_SIZE \ + ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \ - sizeof(unsigned long)) - 1) #endif |