aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-iop32x/entry-macro.S
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-iop32x/entry-macro.S')
-rw-r--r--include/asm-arm/arch-iop32x/entry-macro.S10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/asm-arm/arch-iop32x/entry-macro.S b/include/asm-arm/arch-iop32x/entry-macro.S
index c5ec1e23cbea..3497fef0b890 100644
--- a/include/asm-arm/arch-iop32x/entry-macro.S
+++ b/include/asm-arm/arch-iop32x/entry-macro.S
@@ -16,13 +16,9 @@
16 * Note: only deal with normal interrupts, not FIQ 16 * Note: only deal with normal interrupts, not FIQ
17 */ 17 */
18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp 18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
19 mov \irqnr, #0
20 ldr \base, =IOP3XX_REG_ADDR(0x07D8) 19 ldr \base, =IOP3XX_REG_ADDR(0x07D8)
21 ldr \irqstat, [\base] @ Read IINTSRC 20 ldr \irqstat, [\base] @ Read IINTSRC
22 cmp \irqstat, #0 21 cmp \irqstat, #0
23 beq 1001f 22 clzne \irqnr, \irqstat
24 clz \irqnr, \irqstat 23 rsbne \irqnr, \irqnr, #31
25 mov \base, #31
26 subs \irqnr,\base,\irqnr
271001:
28 .endm 24 .endm