[Kgdb-bugreport] [PATCH] More local_irq_save/local_irq_restore changes
Status: Beta
Brought to you by:
jwessel
From: Manish L. <mla...@mv...> - 2004-12-08 20:21:53
|
Hello ! The attached patch is needed for KGDB on SMP MIPS. This has been tested on the Broadcom Sibyte. kgdb_roundup_cpus() calls smp_call_function() which checks for irqs_disabled(), for obvious reasons Thanks Manish Lachwani --- kernel/kgdb.c.orig 2004-12-08 11:06:45.000000000 -0800 +++ kernel/kgdb.c 2004-12-08 12:16:28.000000000 -0800 @@ -819,9 +819,17 @@ for (i = 0; i < NR_CPUS; i++) spin_lock(&slavecpulocks[i]); +#ifdef CONFIG_SMP + local_irq_restore(flags); +#endif + /* Make sure we get the other CPUs */ kgdb_roundup_cpus(); +#ifdef CONFIG_SMP + local_irq_save(flags); +#endif + /* spin_lock code is good enough as a barrier so we don't * need one here */ procindebug[smp_processor_id()] = 1; |