diff options
Diffstat (limited to 'include/asm-arm/arch-realview/entry-macro.S')
-rw-r--r-- | include/asm-arm/arch-realview/entry-macro.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/arch-realview/entry-macro.S b/include/asm-arm/arch-realview/entry-macro.S index 4df469bf42e2..6288fad0dc41 100644 --- a/include/asm-arm/arch-realview/entry-macro.S +++ b/include/asm-arm/arch-realview/entry-macro.S | |||
@@ -61,3 +61,14 @@ | |||
61 | strcc \irqstat, [\base, #GIC_CPU_EOI] | 61 | strcc \irqstat, [\base, #GIC_CPU_EOI] |
62 | cmpcs \irqnr, \irqnr | 62 | cmpcs \irqnr, \irqnr |
63 | .endm | 63 | .endm |
64 | |||
65 | /* As above, this assumes that irqstat and base are preserved.. */ | ||
66 | |||
67 | .macro test_for_ltirq, irqnr, irqstat, base, tmp | ||
68 | bic \irqnr, \irqstat, #0x1c00 | ||
69 | mov \tmp, #0 | ||
70 | cmp \irqnr, #29 | ||
71 | moveq \tmp, #1 | ||
72 | streq \irqstat, [\base, #GIC_CPU_EOI] | ||
73 | cmp \tmp, #0 | ||
74 | .endm | ||