Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130906
b: refs/heads/master
c: 881eb62
h: refs/heads/master
v: v3
  • Loading branch information
Jie Zhang authored and Bryan Wu committed Feb 4, 2009
1 parent 3de098f commit 8b5e40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 45c4f2a0b6c6302c5617534b8189c0e9b5a4a048
refs/heads/master: 881eb621fc191e58fa638c533073683be2b63c24
8 changes: 3 additions & 5 deletions trunk/arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,8 @@ void show_stack(struct task_struct *task, unsigned long *stack)
decode_address(buf, (unsigned int)stack);
printk(KERN_NOTICE " SP: [0x%p] %s\n", stack, buf);

addr = (unsigned int *)((unsigned int)stack & ~0x3F);

/* First thing is to look for a frame pointer */
for (addr = (unsigned int *)((unsigned int)stack & ~0xF), i = 0;
addr < endstack; addr++, i++) {
for (addr = (unsigned int *)((unsigned int)stack & ~0xF); addr < endstack; addr++) {
if (*addr & 0x1)
continue;
ins_addr = (unsigned short *)*addr;
Expand All @@ -834,7 +831,8 @@ void show_stack(struct task_struct *task, unsigned long *stack)

if (fp) {
/* Let's check to see if it is a frame pointer */
while (fp >= (addr - 1) && fp < endstack && fp)
while (fp >= (addr - 1) && fp < endstack
&& fp && ((unsigned int) fp & 0x3) == 0)
fp = (unsigned int *)*fp;
if (fp == 0 || fp == endstack) {
fp = addr - 1;
Expand Down

0 comments on commit 8b5e40b

Please sign in to comment.