Skip to content

Commit

Permalink
[POWERPC] spufs: fix class0 interrupt assignment
Browse files Browse the repository at this point in the history
The class zero interrupt handling for spus was confusing alignment and
error interrupts, so swap them.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Jun 28, 2006
1 parent 4da30d1 commit 2cd90bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ spu_irq_class_0_bottom(struct spu *spu)

stat &= mask;

if (stat & 1) /* invalid MFC DMA */
__spu_trap_invalid_dma(spu);

if (stat & 2) /* invalid DMA alignment */
if (stat & 1) /* invalid DMA alignment */
__spu_trap_dma_align(spu);

if (stat & 2) /* invalid MFC DMA */
__spu_trap_invalid_dma(spu);

if (stat & 4) /* error on SPU */
__spu_trap_error(spu);

Expand Down

0 comments on commit 2cd90bc

Please sign in to comment.