]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] cell/PS3: Always set master run control bit in mfc_sr1_set
authorJeremy Kerr <jk@ozlabs.org>
Fri, 7 Sep 2007 08:28:27 +0000 (18:28 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 10 Sep 2007 18:30:36 +0000 (04:30 +1000)
commit620fcf745e1a3fa4f70df858c592f16ffc15df51
tree1a8d7045c2e1d81d6a198c8470dc7d0e0425e9b3
parentdfb30f1d5d808c54d7725ef151060364ae59e644
[POWERPC] cell/PS3: Always set master run control bit in mfc_sr1_set

At present, running any SPE program on the ps3 will trigger a BUG_ON
when spufs_run_spu tries to clear the master run control bit, as lv1
does not make the master run control available to Linux.

This change makes SPE apps work again by disabling changes to the
master run control on PS3.  Although we don't have the facility to
disable a SPE with supervisor-level privileges, it's better than
hitting the BUG_ON unconditionally.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/spu.c