MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-ks8695 / entry-macro.S
blobf2ad0a938b1652688d7e2a09a908a8d84c0be388
1 /*
2  * include/asm-arm/arch-ks8695/entry-macro.S
3  *
4  * Low-level IRQ helper macros for KS8695 based platforms
5  *
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.
9  */
11 .macro  disable_fiq
12 .endm
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
19         mov     \irqnr, #0
20 1001:   tst     \irqstat, #1
21         bne     1002f
22         add     \irqnr, \irqnr, #1
23         mov     \irqstat, \irqstat, lsr #1
24         cmp     \irqnr, #32
25         bcc     1001b
26 1002:   @ EQ will be set if we reach
27 .endm