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-s3c3410 / entry-macro.S
blob91a4b0d5dacfd614a80ffb1250e37acc9c8bf1d1
1 /*
2  *  arch/armnommu/mach-s3c3410/entry-macro.S
3  *
4  *  Copyright (C) 2003 Hyok S. Choi <hyok.choi@samsung.com>
5  *  Samsung Electronics Co.,Ltd.
6  *
7  *  defines machine dependent entry macros.
8  *  included in the arch/armnommu/kernel/entry.S
9  *  
10  */
12 #if defined(CONFIG_ARCH_S3C3410)
13                 .macro  disable_fiq
14                 .endm
16                 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
17                 
18                 ldr     \irqstat, =(S3C3410X_INTPND)    @ load address of interrupt pending
19 @               ldr     \irqstat, [\irqstat]    @ register INTPND
20                 ldr     \irqnr, [\irqstat]      @ \irqnr = INTPND
21                 add     \irqstat, \irqstat, #(S3C3410X_INTMSK-S3C3410X_INTPND)
22                 ldr     \irqstat, [\irqstat]    @ \irqstat = INTMSK
23                 and     \irqstat, \irqnr, \irqstat @ \irqstat = (INTPND & INTMSK)
25                 mov     \irqnr, #0
26 1001:
27                 tst     \irqstat, #1
28                 bne     1002f
29                 add     \irqnr, \irqnr, #1
30                 mov     \irqstat, \irqstat, lsr #1
31                 cmp     \irqnr, #NR_IRQS
32                 bcc     1001b
33 1002:           /* EQ will be set if we reach 32 */
34                 .endm
36                 .macro irq_prio_table
37                 .endm
38 #endif