Title: [5903] trunk/arch/blackfin/kernel/kgdb_test.c: [#2443] Use L2_LENGTH instead, and compile
- Revision
- 5903
- Author
- grace
- Date
- 2008-12-19 04:50:54 -0600 (Fri, 19 Dec 2008)
Log Message
[#2443] Use L2_LENGTH instead, and compile
it into module should make l2 work.
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/kgdb_test.c (5902 => 5903)
--- trunk/arch/blackfin/kernel/kgdb_test.c 2008-12-19 10:46:33 UTC (rev 5902)
+++ trunk/arch/blackfin/kernel/kgdb_test.c 2008-12-19 10:50:54 UTC (rev 5903)
@@ -32,12 +32,11 @@
printk(KERN_ALERT "L1(after change) : data variable addr = 0x%p, data value is %d\n", &num1, num1);
return ;
}
-#if defined(CONFIG_BF548) || defined(CONFIG_BF561)
+#if L2_LENGTH
static int num2 __attribute__((l2));
-/* Should be enabled after bug 4562 is fixed.
void kgdb_l2_test(void) __attribute__((l2));
-*/
+
void kgdb_l2_test(void)
{
printk(KERN_ALERT "L2(before change) : data variable addr = 0x%p, data value is %d\n", &num2, num2);
@@ -61,7 +60,7 @@
{
kgdb_test("hello world!", 12, 0x55, 0x10);
kgdb_l1_test();
- #if defined(CONFIG_BF548) || defined(CONFIG_BF561)
+ #if L2_LENGTH
kgdb_l2_test();
#endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits