|
@@ -9,6 +9,7 @@
|
|
|
* Authors: George Davis <davis_g@mvista.com>
|
|
|
* Deepak Saxena <dsaxena@plexity.net>
|
|
|
*/
|
|
|
+#include <linux/irq.h>
|
|
|
#include <linux/kgdb.h>
|
|
|
#include <asm/traps.h>
|
|
|
|
|
@@ -158,6 +159,18 @@ static struct undef_hook kgdb_compiled_brkpt_hook = {
|
|
|
.fn = kgdb_compiled_brk_fn
|
|
|
};
|
|
|
|
|
|
+static void kgdb_call_nmi_hook(void *ignored)
|
|
|
+{
|
|
|
+ kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
|
|
|
+}
|
|
|
+
|
|
|
+void kgdb_roundup_cpus(unsigned long flags)
|
|
|
+{
|
|
|
+ local_irq_enable();
|
|
|
+ smp_call_function(kgdb_call_nmi_hook, NULL, 0);
|
|
|
+ local_irq_disable();
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* kgdb_arch_init - Perform any architecture specific initalization.
|
|
|
*
|