Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140346
b: refs/heads/master
c: 28a0ce7
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Chris Zankel committed Apr 3, 2009
1 parent 31c0685 commit c8c69a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 35f9cd083b350ad4eb3b5f159c7738fa9ddff40a
refs/heads/master: 28a0ce7f642f503dde866f763e8144a517fdf74a
14 changes: 6 additions & 8 deletions trunk/arch/xtensa/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,10 @@ void show_trace(struct task_struct *task, unsigned long *sp)
unsigned long a0, a1, pc;
unsigned long sp_start, sp_end;

a1 = (unsigned long)sp;

if (a1 == 0)
__asm__ __volatile__ ("mov %0, a1\n" : "=a"(a1));

if (sp)
a1 = (unsigned long)sp;
else
a1 = task->thread.sp;

sp_start = a1 & ~(THREAD_SIZE-1);
sp_end = sp_start + THREAD_SIZE;
Expand Down Expand Up @@ -418,9 +417,8 @@ void show_stack(struct task_struct *task, unsigned long *sp)
int i = 0;
unsigned long *stack;

if (sp == 0)
__asm__ __volatile__ ("mov %0, a1\n" : "=a"(sp));

if (!sp)
sp = (unsigned long *)task->thread.sp;
stack = sp;

printk("\nStack: ");
Expand Down

0 comments on commit c8c69a8

Please sign in to comment.