aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorarnd@arndb.de <arnd@arndb.de>2006-06-19 14:33:25 -0400
committerPaul Mackerras <paulus@samba.org>2006-06-21 01:01:30 -0400
commit970f1baae78ff99b7536464214d4c78dde4551e2 (patch)
treecc4ac218ea913c0aa36e4df3f80c9874604c55e1 /arch/powerpc
parent7b1a701480fb17b7f78b95b257bfc90a4f949d04 (diff)
[POWERPC] spufs: fix initial state of wbox file
The wbox channel count of an spu is now initialized to four for the saved context. This makes it possible to write to the mailbox right away without waiting for the SPE to become scheduled first. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/cell/spufs/switch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/switch.c b/arch/powerpc/platforms/cell/spufs/switch.c
index 97a0e80c7df8..4210ec2cb4ca 100644
--- a/arch/powerpc/platforms/cell/spufs/switch.c
+++ b/arch/powerpc/platforms/cell/spufs/switch.c
@@ -2129,6 +2129,7 @@ static void init_prob(struct spu_state *csa)
2129 csa->spu_chnlcnt_RW[28] = 1; 2129 csa->spu_chnlcnt_RW[28] = 1;
2130 csa->spu_chnlcnt_RW[30] = 1; 2130 csa->spu_chnlcnt_RW[30] = 1;
2131 csa->prob.spu_runcntl_RW = SPU_RUNCNTL_STOP; 2131 csa->prob.spu_runcntl_RW = SPU_RUNCNTL_STOP;
2132 csa->prob.mb_stat_R = 0x000400;
2132} 2133}
2133 2134
2134static void init_priv1(struct spu_state *csa) 2135static void init_priv1(struct spu_state *csa)