Skip to content

Commit

Permalink
[PATCH] cris: fix KSTK_EIP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 95ca0dc commit cfa0f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/asm-cris/arch-v10/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion include/asm-cris/arch-v32/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit cfa0f29

Please sign in to comment.