ARM: 5989/1: ARM: KGDB: add support for SMP platforms
To support SMP platforms, KGDB requires the architecture backend to implement the kgdb_roundup_cpus function. This patch, taken against 2.6.33, implements the function for ARM based on the MIPS port. Cc: Jason Wessel <jason.wessel@windriver.com> Cc: Jean-Michel Hautbois <jhautbois@gmail.com> Cc: KGDB Mailing List <kgdb-bugreport@lists.sourceforge.net> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
75216859d9
commit
5d8614cc5d
@@ -9,6 +9,7 @@
|
|||||||
* Authors: George Davis <davis_g@mvista.com>
|
* Authors: George Davis <davis_g@mvista.com>
|
||||||
* Deepak Saxena <dsaxena@plexity.net>
|
* Deepak Saxena <dsaxena@plexity.net>
|
||||||
*/
|
*/
|
||||||
|
#include <linux/irq.h>
|
||||||
#include <linux/kgdb.h>
|
#include <linux/kgdb.h>
|
||||||
#include <asm/traps.h>
|
#include <asm/traps.h>
|
||||||
|
|
||||||
@@ -158,6 +159,18 @@ static struct undef_hook kgdb_compiled_brkpt_hook = {
|
|||||||
.fn = kgdb_compiled_brk_fn
|
.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.
|
* kgdb_arch_init - Perform any architecture specific initalization.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user