aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm26
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 04:06:00 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 12:08:57 -0500
commit7fdf0d7a2012e560fee738bfd7f2af26faeb3a39 (patch)
tree385216347b902e00104ec01a53c5c6ba020d390c /arch/arm26
parent02ef691f6ce4097da5617ebf59493487cb2b4f82 (diff)
[PATCH] arm26: 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 'arch/arm26')
-rw-r--r--arch/arm26/kernel/traps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm26/kernel/traps.c b/arch/arm26/kernel/traps.c
index f64f59022392..5847ea5d7747 100644
--- a/arch/arm26/kernel/traps.c
+++ b/arch/arm26/kernel/traps.c
@@ -132,7 +132,7 @@ static void dump_instr(struct pt_regs *regs)
132 132
133/*static*/ void __dump_stack(struct task_struct *tsk, unsigned long sp) 133/*static*/ void __dump_stack(struct task_struct *tsk, unsigned long sp)
134{ 134{
135 dump_mem("Stack: ", sp, 8192+(unsigned long)tsk->thread_info); 135 dump_mem("Stack: ", sp, 8192+(unsigned long)task_stack_page(tsk));
136} 136}
137 137
138void dump_stack(void) 138void dump_stack(void)
@@ -158,7 +158,7 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
158 } else if (verify_stack(fp)) { 158 } else if (verify_stack(fp)) {
159 printk("invalid frame pointer 0x%08x", fp); 159 printk("invalid frame pointer 0x%08x", fp);
160 ok = 0; 160 ok = 0;
161 } else if (fp < (unsigned long)(tsk->thread_info + 1)) 161 } else if (fp < (unsigned long)end_of_stack(tsk))
162 printk("frame pointer underflow"); 162 printk("frame pointer underflow");
163 printk("\n"); 163 printk("\n");
164 164
@@ -168,7 +168,7 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
168 168
169/* FIXME - this is probably wrong.. */ 169/* FIXME - this is probably wrong.. */
170void show_stack(struct task_struct *task, unsigned long *sp) { 170void show_stack(struct task_struct *task, unsigned long *sp) {
171 dump_mem("Stack: ", (unsigned long)sp, 8192+(unsigned long)task->thread_info); 171 dump_mem("Stack: ", (unsigned long)sp, 8192+(unsigned long)task_stack_page(task));
172} 172}
173 173
174DEFINE_SPINLOCK(die_lock); 174DEFINE_SPINLOCK(die_lock);
@@ -187,7 +187,7 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err)
187 printk("CPU: %d\n", smp_processor_id()); 187 printk("CPU: %d\n", smp_processor_id());
188 show_regs(regs); 188 show_regs(regs);
189 printk("Process %s (pid: %d, stack limit = 0x%p)\n", 189 printk("Process %s (pid: %d, stack limit = 0x%p)\n",
190 current->comm, current->pid, tsk->thread_info + 1); 190 current->comm, current->pid, end_of_stack(tsk));
191 191
192 if (!user_mode(regs) || in_interrupt()) { 192 if (!user_mode(regs) || in_interrupt()) {
193 __dump_stack(tsk, (unsigned long)(regs + 1)); 193 __dump_stack(tsk, (unsigned long)(regs + 1));