Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56346
b: refs/heads/master
c: fac0779
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Russell King committed May 11, 2007
1 parent 2810a9f commit ff8de0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 030f4810e782e541468d36c27e721b582b7820a4
refs/heads/master: fac0779029749dfe8d77a35c26606ebda7a8e176
12 changes: 3 additions & 9 deletions trunk/arch/arm/kernel/stacktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,15 @@ static int save_trace(struct stackframe *frame, void *d)
return trace->nr_entries >= trace->max_entries;
}

void save_stack_trace(struct stack_trace *trace, struct task_struct *task)
void save_stack_trace(struct stack_trace *trace)
{
struct stack_trace_data data;
unsigned long fp, base;

data.trace = trace;
data.skip = trace->skip;

if (task) {
base = (unsigned long)task_stack_page(task);
fp = 0; /* FIXME */
} else {
base = (unsigned long)task_stack_page(current);
asm("mov %0, fp" : "=r" (fp));
}
base = (unsigned long)task_stack_page(current);
asm("mov %0, fp" : "=r" (fp));

walk_stackframe(fp, base, base + THREAD_SIZE, save_trace, &data);
}
Expand Down

0 comments on commit ff8de0e

Please sign in to comment.