Title: [6771] trunk/kernel/kallsyms.c: kallsyms: use new arch_is_kernel_text()
- Revision
- 6771
- Author
- vapier
- Date
- 2009-06-17 11:56:33 -0500 (Wed, 17 Jun 2009)
Log Message
kallsyms: use new arch_is_kernel_text()
This allows kallsyms to locate symbols that are in arch-specific text
sections (such as text in Blackfin on-chip SRAM regions).
Modified Paths
Diff
Modified: trunk/kernel/kallsyms.c (6770 => 6771)
--- trunk/kernel/kallsyms.c 2009-06-17 16:55:42 UTC (rev 6770)
+++ trunk/kernel/kallsyms.c 2009-06-17 16:56:33 UTC (rev 6771)
@@ -55,12 +55,8 @@
static inline int is_kernel_text(unsigned long addr)
{
- if ((addr >= (unsigned long)_stext && addr <= (unsigned long)_etext)
-#if defined(CONFIG_BLACKFIN)
- || (addr >= (unsigned long)_stext_l1 && addr <= (unsigned long)_etext_l1)
- || (L2_LENGTH && addr >= (unsigned long)_stext_l2 && addr <= (unsigned long)_etext_l2)
-#endif
- )
+ if ((addr >= (unsigned long)_stext && addr <= (unsigned long)_etext) ||
+ arch_is_kernel_text(addr))
return 1;
return in_gate_area_no_task(addr);
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits