aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/kgdb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c
index b117781bfea2..93458880acad 100644
--- a/arch/sh/kernel/kgdb.c
+++ b/arch/sh/kernel/kgdb.c
@@ -264,6 +264,18 @@ BUILD_TRAP_HANDLER(singlestep)
264 local_irq_restore(flags); 264 local_irq_restore(flags);
265} 265}
266 266
267static void kgdb_call_nmi_hook(void *ignored)
268{
269 kgdb_nmicallback(raw_smp_processor_id(), NULL);
270}
271
272void kgdb_roundup_cpus(unsigned long flags)
273{
274 local_irq_enable();
275 smp_call_function(kgdb_call_nmi_hook, NULL, 0);
276 local_irq_disable();
277}
278
267static int __kgdb_notify(struct die_args *args, unsigned long cmd) 279static int __kgdb_notify(struct die_args *args, unsigned long cmd)
268{ 280{
269 int ret; 281 int ret;