2 * include/asm-arm/arch-ixp4xx/entry-macro.S
4 * Low-level IRQ helper macros for IXP4xx-based platforms
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
14 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
15 ldr \irqstat, =(IXP4XX_INTC_BASE_VIRT+IXP4XX_ICIP_OFFSET)
16 ldr \irqstat, [\irqstat] @ get interrupts
21 subs \irqnr, \base, \irqnr
25 * IXP465 has an upper IRQ status register
27 #if defined(CONFIG_CPU_IXP46X)
29 ldr \irqstat, =(IXP4XX_INTC_BASE_VIRT+IXP4XX_ICIP2_OFFSET)
30 ldr \irqstat, [\irqstat] @ get upper interrupts
32 clz \irqstat, \irqstat
34 subne \irqnr, \irqnr, \irqstat