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-s3c24a0 / entry-macro.S
blobe91043e6750a21865fd07646cb9a9405842f2e2d
1 /*
2  *  arch/armnommu/mach-s3c24a0/entry-macro.S
3  * 
4  *  Heechul Yun <heechul.yun@samsung.com>
5  *  Hyok S. Choi <hyok.choi@samsung.com> for fixup patch
6  */
9 #include <asm/hardware.h>        
10                 .macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
11                 mov     \irqstat,   #io_p2v(0x40000000) @ Virtual Address
12                 add     \irqstat, \irqstat,#0x00200000  @ INT Ctrl base
13                                                                                                                                                       
14                 ldr     \irqnr,   [\irqstat,#0x14]      @ INTOFFSET
15                 cmp     \irqnr,#0
16                 beq     1001f
17                 mov     r0, \irqnr
18                 bl      fixup_irq
19                 b       1002f
20 1001:
21                 ldr     \irqstat,[\irqstat,#-0x4]       @ INTPND
22                 tst     \irqstat,#0x1                   @ EINT0_2 happens ?
23 1002:
25                 .endm 
26                 .macro  disable_fiq
27                 .endm
29                 /* we don't have an irq priority table */
30                 .macro irq_prio_table
31                 .endm