2 * include/asm-arm/arch-ks8695/entry-macro.S
4 * Low-level IRQ helper macros for KS8695 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.
15 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
16 ldr \irqnr, =KS8695_IO_VIRT+KS8695_INT_MASK_STATUS
17 ldr \irqstat, [\irqnr] @ get masked status
20 1001: tst \irqstat, #1
22 add \irqnr, \irqnr, #1
23 mov \irqstat, \irqstat, lsr #1
26 1002: @ EQ will be set if we reach