Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372121
b: refs/heads/master
c: 01223f3
h: refs/heads/master
i:
  372119: b64dbfe
v: v3
  • Loading branch information
Keun-O Park authored and Russell King committed Mar 19, 2013
1 parent 4a7d57d commit 5700e00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 3b4af9bc24472a9411837ad0794312028df1fbd9
refs/heads/master: 01223f365074d62bbc24709dad9b4a905206fa02
5 changes: 3 additions & 2 deletions trunk/arch/arm/kernel/return_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static int save_return_addr(struct stackframe *frame, void *d)
struct return_address_data *data = d;

if (!data->level) {
data->addr = (void *)frame->lr;
data->addr = (void *)frame->pc;

return 1;
} else {
Expand All @@ -41,7 +41,8 @@ void *return_address(unsigned int level)
struct stackframe frame;
register unsigned long current_sp asm ("sp");

data.level = level + 1;
data.level = level + 2;
data.addr = NULL;

frame.fp = (unsigned long)__builtin_frame_address(0);
frame.sp = current_sp;
Expand Down

0 comments on commit 5700e00

Please sign in to comment.