diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-06-20 21:57:45 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-06-20 21:57:45 +0000 |
commit | 3b0dba382bf5e3664a5e06de1092cca04cffcd59 (patch) | |
tree | 02aa5315f0804c61a8f8c93bd361cb85957e5681 /target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach | |
parent | f45cd305435ab6fb16384b260d007413eac21231 (diff) | |
download | upstream-3b0dba382bf5e3664a5e06de1092cca04cffcd59.tar.gz upstream-3b0dba382bf5e3664a5e06de1092cca04cffcd59.tar.bz2 upstream-3b0dba382bf5e3664a5e06de1092cca04cffcd59.zip |
do not use MULTI_IRQ_HANDLER it is bogus on our platform
This caused stalls in the Ethernet DMA block, so until properly
written and sorted out, fallback to the assembly version instead.
SVN-Revision: 32470
Diffstat (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach')
-rw-r--r-- | target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S index 9974dad293..eeff72ca64 100644 --- a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S +++ b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S @@ -4,3 +4,26 @@ .macro arch_ret_to_user, tmp1, tmp2 .endm + + .macro get_irqnr_preamble, base, tmp + ldr \base, =mcs814x_intc_base @ base virtual address of AIC peripheral + ldr \base, [\base] + .endm + + .macro get_irqnr_and_base, irqnr, irqstat, base, tmp + mov \tmp, #0x40 + ldr \irqstat, [\base, \tmp] + tst \irqstat, \irqstat @ test if no active IRQ's + beq 1002f @ if no active irqs return with status 0 + mov \irqnr, #0 @ start from irq zero + mov \tmp, #1 @ the mask initially 1 +1001: + tst \irqstat, \tmp @ and with mask + addeq \irqnr, \irqnr, #1 @ if zero then add one to nr + moveq \tmp, \tmp, lsl #1 @ shift mask one to left + beq 1001b @ if zero then loop again + mov \irqstat, \tmp @ save the return mask + mov \tmp, #0x00 @ ICR offset + str \irqstat, [\base, \tmp] @ clear irq with selected mask +1002: + .endm |