Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56644
b: refs/heads/master
c: 8a0e665
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 21, 2007
1 parent 4af2259 commit f6a04d1
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 678402709602a5e62bb79454f0f41bd952373300
refs/heads/master: 8a0e6656030ffe9bcb81b725e956917bafc7522d
18 changes: 13 additions & 5 deletions trunk/arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ static int printk_address(unsigned long address)
struct vm_list_struct *vml;
struct task_struct *p;
struct mm_struct *mm;
unsigned long offset;

#ifdef CONFIG_KALLSYMS
unsigned long offset = 0, symsize;
unsigned long symsize;
const char *symname;
char *modname;
char *delim = ":";
Expand Down Expand Up @@ -106,12 +107,19 @@ static int printk_address(unsigned long address)
sizeof(_tmpbuf));
}

/* FLAT does not have its text aligned to the start of
* the map while FDPIC ELF does ...
*/
if (current->mm &&
(address > current->mm->start_code) &&
(address < current->mm->end_code))
offset = address - current->mm->start_code;
else
offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);

write_unlock_irq(&tasklist_lock);
return printk("<0x%p> [ %s + 0x%lx ]",
(void*)address, name,
(unsigned long)
((address - vma->vm_start) +
(vma->vm_pgoff << PAGE_SHIFT)));
(void*)address, name, offset);
}

vml = vml->next;
Expand Down

0 comments on commit f6a04d1

Please sign in to comment.