summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v32
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 10:06:04 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 18:08:58 +0100
commitcfa0f29b6da2c4d45ecdeaabe17af4c4adc47c05 (patch)
treeb510b043f7762f6bd3089065310015ad96f8b65c /include/asm-cris/arch-v32
parent[PATCH] cris: task_pt_regs() (diff)
downloadlinux-cfa0f29b6da2c4d45ecdeaabe17af4c4adc47c05.tar.xz
linux-cfa0f29b6da2c4d45ecdeaabe17af4c4adc47c05.zip
[PATCH] cris: fix KSTK_EIP
cris KSTK_EIP looked for pt_regs at the right offset but from the wrong place - forgotten ->thread_info 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-cris/arch-v32')
-rw-r--r--include/asm-cris/arch-v32/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-cris/arch-v32/processor.h b/include/asm-cris/arch-v32/processor.h
index 8c939bf27987..32bf2e538ced 100644
--- a/include/asm-cris/arch-v32/processor.h
+++ b/include/asm-cris/arch-v32/processor.h
@@ -36,7 +36,7 @@ struct thread_struct {
#define KSTK_EIP(tsk) \
({ \
unsigned long eip = 0; \
- unsigned long regs = (unsigned long)user_regs(tsk); \
+ unsigned long regs = (unsigned long)task_pt_regs(tsk); \
if (regs > PAGE_SIZE && virt_addr_valid(regs)) \
eip = ((struct pt_regs *)regs)->erp; \
eip; \