diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:58 -0500 |
commit | cfa0f29b6da2c4d45ecdeaabe17af4c4adc47c05 (patch) | |
tree | b510b043f7762f6bd3089065310015ad96f8b65c | |
parent | 95ca0dc603ab58f3e4c5a1c23f675bd1f5b5fef3 (diff) |
[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>
-rw-r--r-- | include/asm-cris/arch-v10/processor.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/processor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-cris/arch-v10/processor.h b/include/asm-cris/arch-v10/processor.h index e23df8dc96e8..cc692c7a0660 100644 --- a/include/asm-cris/arch-v10/processor.h +++ b/include/asm-cris/arch-v10/processor.h | |||
@@ -40,7 +40,7 @@ struct thread_struct { | |||
40 | #define KSTK_EIP(tsk) \ | 40 | #define KSTK_EIP(tsk) \ |
41 | ({ \ | 41 | ({ \ |
42 | unsigned long eip = 0; \ | 42 | unsigned long eip = 0; \ |
43 | unsigned long regs = (unsigned long)user_regs(tsk); \ | 43 | unsigned long regs = (unsigned long)task_pt_regs(tsk); \ |
44 | if (regs > PAGE_SIZE && \ | 44 | if (regs > PAGE_SIZE && \ |
45 | virt_addr_valid(regs)) \ | 45 | virt_addr_valid(regs)) \ |
46 | eip = ((struct pt_regs *)regs)->irp; \ | 46 | eip = ((struct pt_regs *)regs)->irp; \ |
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 { | |||
36 | #define KSTK_EIP(tsk) \ | 36 | #define KSTK_EIP(tsk) \ |
37 | ({ \ | 37 | ({ \ |
38 | unsigned long eip = 0; \ | 38 | unsigned long eip = 0; \ |
39 | unsigned long regs = (unsigned long)user_regs(tsk); \ | 39 | unsigned long regs = (unsigned long)task_pt_regs(tsk); \ |
40 | if (regs > PAGE_SIZE && virt_addr_valid(regs)) \ | 40 | if (regs > PAGE_SIZE && virt_addr_valid(regs)) \ |
41 | eip = ((struct pt_regs *)regs)->erp; \ | 41 | eip = ((struct pt_regs *)regs)->erp; \ |
42 | eip; \ | 42 | eip; \ |