Title: [5269] trunk/arch/blackfin/kernel/kgdb.c: Task[#3428] More SMP support in kgdb.
Revision
5269
Author
sonicz
Date
2008-09-09 04:38:51 -0500 (Tue, 09 Sep 2008)

Log Message

Task[#3428] More SMP support in kgdb.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/kgdb.c (5268 => 5269)


--- trunk/arch/blackfin/kernel/kgdb.c	2008-09-09 09:33:49 UTC (rev 5268)
+++ trunk/arch/blackfin/kernel/kgdb.c	2008-09-09 09:38:51 UTC (rev 5269)
@@ -389,8 +389,20 @@
 	int newPC;
 	int wp_status;
 	int i;
+#ifdef CONFIG_SMP
+	int cpu = raw_smp_processor_id();
+	struct task_struct *thread;
+#endif
 
 	switch (remcom_in_buffer[0]) {
+#ifdef CONFIG_SMP
+	case 'H':
+		thread = getthread(regs, -cpu - 2);
+		if (kgdb_usethread && kgdb_usethread != thread)
+			smp_call_function_single(cpu,
+				kgdb_passive_cpu_callback, NULL, 0, 0);
+		return 0;
+#endif
 	case 'c':
 	case 's':
 		if (kgdb_contthread && kgdb_contthread != current) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to