2 * arch/arm/mach-prima2/include/mach/entry-macro.S
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
9 #include <mach/hardware.h>
11 #define SIRFSOC_INT_ID 0x38
13 .macro get_irqnr_preamble, base, tmp
14 ldr \base, =sirfsoc_intc_base
18 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
19 ldr \irqnr, [\base, #SIRFSOC_INT_ID] @ Get the highest priority irq
20 cmp \irqnr, #0x40 @ the irq num can't be larger than 0x3f
27 .macro arch_ret_to_user, tmp1, tmp2