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 @@
cmp \irqstat, #0
beq 1001f
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
b 1001f
1002: clz \irqnr, \irqstat
mov \base, #31
subs \irqnr,\base,\irqnr
1002: clz \irqnr, \irqstat
rsbs \irqnr,\irqnr,#31 @ recommend by RMK
add \irqnr,\irqnr,#IRQ_IOP331_DMA0_EOT
1001:
.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