2 * include/arm/arch-lpc22xx/entry-macro.S
4 * Copyright (C) 2004 Philips Semiconductors
6 * defines machine dependent entry macros.
7 * included in the arch/armnommu/kernel/entry.S
10 .EQU VICIrqStatus, 0xFFFFF000
12 #if defined(CONFIG_ARCH_LPC22xx)
16 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
18 ldr \irqstat, =(VICIrqStatus) @ load address of interrupt pending
19 ldr \irqstat, [\irqstat] @ get the register content
25 add \irqnr, \irqnr, #1
26 mov \irqstat, \irqstat, lsr #1
29 1002: /* EQ will be set if we reach 32 */