]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.arch/ppc-cell-gdb-watchpoints.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / ppc-cell-gdb-watchpoints.patch
diff --git a/src/patches/suse-2.6.27.31/patches.arch/ppc-cell-gdb-watchpoints.patch b/src/patches/suse-2.6.27.31/patches.arch/ppc-cell-gdb-watchpoints.patch
deleted file mode 100644 (file)
index ff511ff..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-Subject: Fix GDB watchpoints on Cell
-From: Arnd Bergmann <arnd@arndb.de>
-References: 456405 - LTC50396
-
-An earlier patch from Jens Osterkamp attempted to fix GDB
-watchpoints by enabling the DABRX register at boot time.
-Unfortunately, this did not work on SMP setups, where
-secondary CPUs were still using the power-on DABRX value.
-
-This introduces the same change for secondary CPUs on cell
-as well.
-
-Reported-by: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
-Tested-by: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Signed-off-by: Paul Mackerras <paulus@samba.org>
-Signed-off-by: Olaf Hering <olh@suse.de>
-
----
- arch/powerpc/platforms/cell/smp.c |    9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
---- a/arch/powerpc/platforms/cell/smp.c
-+++ b/arch/powerpc/platforms/cell/smp.c
-@@ -129,10 +129,15 @@ static int __init smp_iic_probe(void)
-       return cpus_weight(cpu_possible_map);
- }
--static void __devinit smp_iic_setup_cpu(int cpu)
-+static void __devinit smp_cell_setup_cpu(int cpu)
- {
-       if (cpu != boot_cpuid)
-               iic_setup_cpu();
-+
-+      /*
-+       * change default DABRX to allow user watchpoints
-+       */
-+      mtspr(SPRN_DABRX, DABRX_KERNEL | DABRX_USER);
- }
- static DEFINE_SPINLOCK(timebase_lock);
-@@ -192,7 +197,7 @@ static struct smp_ops_t bpa_iic_smp_ops 
-       .message_pass   = smp_iic_message_pass,
-       .probe          = smp_iic_probe,
-       .kick_cpu       = smp_cell_kick_cpu,
--      .setup_cpu      = smp_iic_setup_cpu,
-+      .setup_cpu      = smp_cell_setup_cpu,
-       .cpu_bootable   = smp_cell_cpu_bootable,
- };