[POWERPC] spufs: Fix update of mailbox status register during backed wbox write
authorArnd Bergmann <arnd@arndb.de>
Tue, 21 Aug 2007 02:06:22 +0000 (10:06 +0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 30 Aug 2007 06:27:18 +0000 (16:27 +1000)
commit62ee68e3bcb0d056aae5b36dea0388ca25572cdf
tree9505159245da590610d592b66403c21d569a8eab
parentaac2e68481681a362ab6f44fc515034e2a4c7f2c
[POWERPC] spufs: Fix update of mailbox status register during backed wbox write

When a process writes into the inbound spu mailbox (wbox) while the
context is saved, we accidentally break the contents of the mb_stat_R
register by clearing other entries of the mailbox status register. This
can cause the user side to hang.

This change fixes the problem by only altering the appropriate bits
of the mailbox status register during a backing-store write.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/backing_ops.c