generic 2.6.24 support
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.24 / 013-mips_gdb_stub.patch
1 Index: linux-2.6.23/arch/mips/kernel/gdb-stub.c
2 ===================================================================
3 --- linux-2.6.23.orig/arch/mips/kernel/gdb-stubc.c      2007-10-12 18:43:44.000000000 +0200
4 +++ linux-2.6.23/arch/mips/kernel/gdb-stub.c   2007-11-16 08:35:51.000000000 +0100
5 @@ -656,6 +656,7 @@
6         *epc = (unsigned long)async_breakpoint;
7  }
8
9 +#ifdef CONFIG_SMP
10  static void kgdb_wait(void *arg)
11  {
12         unsigned flags;
13 @@ -668,6 +669,7 @@
14
15         local_irq_restore(flags);
16  }
17 +#endif
18
19  /*
20   * GDB stub needs to call kgdb_wait on all processor with interrupts