[POWERPC] enable hardware watchpoints on cell blades
authorJens Osterkamp <jens@de.ibm.com>
Thu, 28 Feb 2008 10:27:31 +0000 (11:27 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 3 Mar 2008 07:03:14 +0000 (08:03 +0100)
Ulrich Weigand has found that the hardware watchpoints on cell were not
working back in November :

http://ozlabs.org/pipermail/linuxppc-dev/2007-November/046135.html

This patch sets them during initialization.

Signed-off-by: Jens Osterkamp <jens@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/platforms/cell/setup.c

index a7f609b3b876d61b1f128bf3902f8262761d0927..dda34650cb07d32afff1c86dadd856e0eb48c394 100644 (file)
@@ -149,6 +149,11 @@ static void __init cell_init_irq(void)
        mpic_init_IRQ();
 }
 
+static void __init cell_set_dabrx(void)
+{
+       mtspr(SPRN_DABRX, DABRX_KERNEL | DABRX_USER);
+}
+
 static void __init cell_setup_arch(void)
 {
 #ifdef CONFIG_SPU_BASE
@@ -158,6 +163,8 @@ static void __init cell_setup_arch(void)
 
        cbe_regs_init();
 
+       cell_set_dabrx();
+
 #ifdef CONFIG_CBE_RAS
        cbe_ras_init();
 #endif