Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87406
b: refs/heads/master
c: dc39455
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin committed Mar 16, 2008
1 parent 001ecb3 commit c2cd456
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b23f5baab393a36ea560182fc9f9005d47a15050
refs/heads/master: dc39455e7948ec9bc5f3f2dced5c2f5ac8a8dfd9
25 changes: 21 additions & 4 deletions trunk/arch/parisc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
DEFINE_SPINLOCK(pa_dbit_lock);
#endif

void parisc_show_stack(struct task_struct *t, unsigned long *sp,
struct pt_regs *regs);

static int printbinary(char *buf, unsigned long x, int nbits)
{
unsigned long mask = 1UL << (nbits - 1);
Expand Down Expand Up @@ -149,7 +152,7 @@ void show_regs(struct pt_regs *regs)
printk(level);
print_symbol(" RP(r2): %s\n", regs->gr[2]);

dump_stack();
parisc_show_stack(current, NULL, regs);
}


Expand Down Expand Up @@ -183,11 +186,19 @@ static void do_show_stack(struct unwind_frame_info *info)
printk("\n");
}

void show_stack(struct task_struct *task, unsigned long *s)
void parisc_show_stack(struct task_struct *task, unsigned long *sp,
struct pt_regs *regs)
{
struct unwind_frame_info info;
struct task_struct *t;

t = task ? task : current;
if (regs) {
unwind_frame_init(&info, t, regs);
goto show_stack;
}

if (!task) {
if (t == current) {
unsigned long sp;

HERE:
Expand All @@ -203,12 +214,18 @@ void show_stack(struct task_struct *task, unsigned long *s)
unwind_frame_init(&info, current, &r);
}
} else {
unwind_frame_init_from_blocked_task(&info, task);
unwind_frame_init_from_blocked_task(&info, t);
}

show_stack:
do_show_stack(&info);
}

void show_stack(struct task_struct *t, unsigned long *sp)
{
return parisc_show_stack(t, sp, NULL);
}

int is_valid_bugaddr(unsigned long iaoq)
{
return 1;
Expand Down

0 comments on commit c2cd456

Please sign in to comment.