| * arch/arm/mach-versatile/include/mach/entry-macro.S |
| * Low-level IRQ helper macros for Versatile platforms |
| * This file is licensed under the terms of the GNU General Public |
| * License version 2. This program is licensed "as is" without any |
| * warranty of any kind, whether express or implied. |
| #include <mach/hardware.h> |
| #include <asm/hardware/vic.h> |
| .macro get_irqnr_preamble, base, tmp |
| ldr \base, =IO_ADDRESS(VERSATILE_VIC_BASE) |
| .macro arch_ret_to_user, tmp1, tmp2 |
| .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |
| ldr \irqstat, [\base, #VIC_IRQ_STATUS] @ get masked status |
| movs \irqstat, \irqstat, lsr #4 |
| movs \irqstat, \irqstat, lsr #1 |
| 1003: /* EQ will be set if no irqs pending */ |
| @1003: /* EQ will be set if we reach MAXIRQNUM */ |