|
@@ -2116,7 +2116,7 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
|
|
printk("\n");
|
|
printk("\n");
|
|
#endif
|
|
#endif
|
|
do {
|
|
do {
|
|
- struct reg_window *rw;
|
|
|
|
|
|
+ struct sparc_stackf *sf;
|
|
struct pt_regs *regs;
|
|
struct pt_regs *regs;
|
|
unsigned long pc;
|
|
unsigned long pc;
|
|
|
|
|
|
@@ -2124,15 +2124,17 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
|
|
if (fp < (thread_base + sizeof(struct thread_info)) ||
|
|
if (fp < (thread_base + sizeof(struct thread_info)) ||
|
|
fp >= (thread_base + THREAD_SIZE))
|
|
fp >= (thread_base + THREAD_SIZE))
|
|
break;
|
|
break;
|
|
- rw = (struct reg_window *)fp;
|
|
|
|
- regs = (struct pt_regs *) (rw + 1);
|
|
|
|
|
|
+ sf = (struct sparc_stackf *) fp;
|
|
|
|
+ regs = (struct pt_regs *) (sf + 1);
|
|
|
|
|
|
if ((regs->magic & ~0x1ff) == PT_REGS_MAGIC) {
|
|
if ((regs->magic & ~0x1ff) == PT_REGS_MAGIC) {
|
|
|
|
+ if (!(regs->tstate & TSTATE_PRIV))
|
|
|
|
+ break;
|
|
pc = regs->tpc;
|
|
pc = regs->tpc;
|
|
fp = regs->u_regs[UREG_I6] + STACK_BIAS;
|
|
fp = regs->u_regs[UREG_I6] + STACK_BIAS;
|
|
} else {
|
|
} else {
|
|
- pc = rw->ins[7];
|
|
|
|
- fp = rw->ins[6] + STACK_BIAS;
|
|
|
|
|
|
+ pc = sf->callers_pc;
|
|
|
|
+ fp = (unsigned long)sf->fp + STACK_BIAS;
|
|
}
|
|
}
|
|
|
|
|
|
printk(" [%016lx] ", pc);
|
|
printk(" [%016lx] ", pc);
|