Skip to content

Commit

Permalink
[POWERPC] enable hardware watchpoints on cell blades
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Osterkamp authored and Arnd Bergmann committed Mar 3, 2008
1 parent 9176c0b commit f3c1ed9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/powerpc/platforms/cell/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f3c1ed9

Please sign in to comment.