From bc89518781204a7d98b79ea4fbc530a44d407383 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 23 Jun 2012 11:03:29 +0000 Subject: [mcs814x] regroup interrupt controller register definitions in hardware.h git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32485 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/entry-macro.S') 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 eeff72ca6..58ad30ea0 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 @@ -11,8 +11,8 @@ .endm .macro get_irqnr_and_base, irqnr, irqstat, base, tmp - mov \tmp, #0x40 - ldr \irqstat, [\base, \tmp] + mov \tmp, #MCS814X_IRQ_STS0 @ load tmp with STS0 register offset + ldr \irqstat, [\base, \tmp] @ load value at 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 @@ -23,7 +23,7 @@ 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 + mov \tmp, #MCS814X_IRQ_STS0 @ load tmp with ICR offset str \irqstat, [\base, \tmp] @ clear irq with selected mask 1002: .endm -- cgit v1.2.3