[PATCH] cris: fix KSTK_EIP
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 12 Jan 2006 09:06:04 +0000 (01:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 17:08:58 +0000 (09:08 -0800)
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>
include/asm-cris/arch-v10/processor.h
include/asm-cris/arch-v32/processor.h

index e23df8dc96e8c7d80633e0165e6757ffd2467583..cc692c7a0660cb79b5644ba324068d825e5a94b7 100644 (file)
@@ -40,7 +40,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)->irp; \
index 8c939bf27987f36a6c89cb3acfe6db6d874f2419..32bf2e538ced1913b7618e2b13360a09ee65bb9a 100644 (file)
@@ -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; \