[Cbe-oss-dev] [PATCH 2/2] enable hardware watchpoints on cell blades
Jens Osterkamp
jens at de.ibm.com
Thu Feb 28 21:27:31 EST 2008
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 at de.ibm.com>
Index: linux-2.6/arch/powerpc/platforms/cell/setup.c
===================================================================
--- linux-2.6.orig/arch/powerpc/platforms/cell/setup.c 2008-02-26 14:31:47.000000000 +0100
+++ linux-2.6/arch/powerpc/platforms/cell/setup.c 2008-02-26 14:55:16.000000000 +0100
@@ -149,6 +149,11 @@
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 @@
cbe_regs_init();
+ cell_set_dabrx();
+
#ifdef CONFIG_CBE_RAS
cbe_ras_init();
#endif
More information about the cbe-oss-dev
mailing list