]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/cell/spufs/backing_ops.c
[POWERPC] spufs: Fix update of mailbox status register during backed wbox write
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / cell / spufs / backing_ops.c
index 07a0e815abf5caafa54223604e79837bab1eed0c..ec01214e51ee9034062b97ffed7f16f34db9aee4 100644 (file)
@@ -162,7 +162,8 @@ static int spu_backing_wbox_write(struct spu_context *ctx, u32 data)
                BUG_ON(avail != (4 - slot));
                ctx->csa.spu_mailbox_data[slot] = data;
                ctx->csa.spu_chnlcnt_RW[29] = ++slot;
-               ctx->csa.prob.mb_stat_R = (((4 - slot) & 0xff) << 8);
+               ctx->csa.prob.mb_stat_R &= ~(0x00ff00);
+               ctx->csa.prob.mb_stat_R |= (((4 - slot) & 0xff) << 8);
                gen_spu_event(ctx, MFC_SPU_MAILBOX_WRITTEN_EVENT);
                ret = 4;
        } else {