Title: [6772] trunk/kernel/lockdep.c: lockdep: use new arch_is_kernel_data()
- Revision
- 6772
- Author
- vapier
- Date
- 2009-06-17 11:57:08 -0500 (Wed, 17 Jun 2009)
Log Message
lockdep: use new arch_is_kernel_data()
This allows lockdep to locate symbols that are in arch-specific data
sections (such as data in Blackfin on-chip SRAM regions).
Modified Paths
Diff
Modified: trunk/kernel/lockdep.c (6771 => 6772)
--- trunk/kernel/lockdep.c 2009-06-17 16:56:33 UTC (rev 6771)
+++ trunk/kernel/lockdep.c 2009-06-17 16:57:08 UTC (rev 6772)
@@ -634,26 +634,8 @@
if ((addr >= start) && (addr < end))
return 1;
-#ifdef CONFIG_BLACKFIN
- if (L1_DATA_A_LENGTH) {
- start = (unsigned long) &_sdata_l1;
- end = (unsigned long) &_ebss_l1;
- if ((addr >= start) && (addr < end))
- return 1;
- }
- if (L1_DATA_B_LENGTH) {
- start = (unsigned long) &_sdata_b_l1;
- end = (unsigned long) &_ebss_b_l1;
- if ((addr >= start) && (addr < end))
- return 1;
- }
- if (L2_LENGTH) {
- start = (unsigned long) &_sdata_l2;
- end = (unsigned long) &_ebss_l2;
- if ((addr >= start) && (addr < end))
- return 1;
- }
-#endif
+ if (arch_is_kernel_data(addr))
+ return 1;
#ifdef CONFIG_SMP
/*
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits