]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit5d176659b330b959162a184dd0930b8445143f2b
tree9505159245da590610d592b66403c21d569a8eab
parent6f9d084766bc2523cd44a04331901a13a6350dd3
[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