Commit 8400eab4 authored by Dave Jiang's avatar Dave Jiang Committed by Russell King

[ARM PATCH] 2361/1: clean up irq handling code for IOP33x platforms

Patch from Dave Jiang

Signed-off-by: Dave Jiang

Substitute 2 asm instr w/ one recommend by RMK.
Signed-off-by: Russell King
parent caef95d4
...@@ -43,16 +43,11 @@ ...@@ -43,16 +43,11 @@
cmp \irqstat, #0 cmp \irqstat, #0
beq 1001f beq 1001f
clz \irqnr, \irqstat clz \irqnr, \irqstat
/*
* mov \base, #31
* subs \irqnr,\base,\irqnr
*/
rsbs \irqnr,\irqnr,#31 @ recommend by RMK rsbs \irqnr,\irqnr,#31 @ recommend by RMK
add \irqnr,\irqnr,#IRQ_IOP331_XINT8 add \irqnr,\irqnr,#IRQ_IOP331_XINT8
b 1001f b 1001f
1002: clz \irqnr, \irqstat 1002: clz \irqnr, \irqstat
mov \base, #31 rsbs \irqnr,\irqnr,#31 @ recommend by RMK
subs \irqnr,\base,\irqnr
add \irqnr,\irqnr,#IRQ_IOP331_DMA0_EOT add \irqnr,\irqnr,#IRQ_IOP331_DMA0_EOT
1001: 1001:
.endm .endm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment