Skip to content

Commit

Permalink
ARM: remove disable_fiq and arch_ret_to_user macros
Browse files Browse the repository at this point in the history
Now that most platforms don't need disable_fiq and arch_ret_to_user
macros, we can remove the empty macros or empty entry-macro.S files.

Signed-off-by: Rob Herring <[email protected]>
Acked-by: Jamie Iles <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Acked-by: Ryan Mallon <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: H Hartley Sweeten <[email protected]>
Acked-by: Shawn Guo <[email protected]>
  • Loading branch information
Rob Herring committed Feb 21, 2012
1 parent 243c865 commit 230f984
Show file tree
Hide file tree
Showing 58 changed files with 0 additions and 591 deletions.
8 changes: 0 additions & 8 deletions arch/arm/include/asm/hardware/entry-macro-iomd.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
/* IOC / IOMD based hardware */
#include <asm/hardware/iomd.h>

.macro disable_fiq
mov r12, #ioc_base_high
.if ioc_base_low
orr r12, r12, #ioc_base_low
.endif
strb r12, [r12, #0x38] @ Disable FIQ register
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldrb \irqstat, [\base, #IOMD_IRQREQB] @ get high priority first
ldr \tmp, =irq_prio_h
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@
#include <mach/hardware.h>
#include <mach/at91_aic.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =at91_aic_base @ base virtual address of AIC peripheral
ldr \base, [\base]
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqnr, [\base, #AT91_AIC_IVR] @ read IRQ vector register: de-asserts nIRQ to processor (and clears interrupt)
ldr \irqstat, [\base, #AT91_AIC_ISR] @ read interrupt source number
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-bcmring/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#include <mach/hardware.h>
#include <mach/csp/mm_io.h>

.macro disable_fiq
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \base, =(MM_IO_BASE_INTC0)
ldr \irqstat, [\base, #0] @ get status
Expand Down Expand Up @@ -77,6 +74,3 @@

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm
6 changes: 0 additions & 6 deletions arch/arm/mach-clps711x/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
#include <mach/hardware.h>
#include <asm/hardware/clps7111.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

#if (INTSR2 - INTSR1) != (INTMR2 - INTMR1)
#error INTSR stride != INTMR stride
#endif
Expand Down
15 changes: 0 additions & 15 deletions arch/arm/mach-cns3xxx/include/mach/entry-macro.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/mach-davinci/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@
#include <mach/io.h>
#include <mach/irqs.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =davinci_intc_base
ldr \base, [\base]
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
#if defined(CONFIG_AINTC) && defined(CONFIG_CP_INTC)
ldr \tmp, =davinci_intc_type
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-dove/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include <mach/bridge-regs.h>

.macro disable_fiq
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =IRQ_VIRT_BASE
.endm
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-ebsa110/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@

#define IRQ_STAT 0xff000000 /* read */

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
mov \base, #IRQ_STAT
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, stat, base, tmp
ldrb \stat, [\base] @ get interrupts
mov \irqnr, #0
Expand Down
17 changes: 0 additions & 17 deletions arch/arm/mach-ep93xx/include/mach/entry-macro.S

This file was deleted.

16 changes: 0 additions & 16 deletions arch/arm/mach-exynos/include/mach/entry-macro.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/mach-footbridge/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@
.equ dc21285_high, ARMCSR_BASE & 0xff000000
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
mov \base, #dc21285_high
.if dc21285_low
orr \base, \base, #dc21285_low
.endif
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqstat, [\base, #0x180] @ get interrupts

Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-gemini/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@

#define IRQ_STATUS 0x14

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqstat, =IO_ADDRESS(GEMINI_INTERRUPT_BASE + IRQ_STATUS)
ldr \irqnr, [\irqstat]
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-h720x/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
* warranty of any kind, whether express or implied.
*/

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
#if defined (CONFIG_CPU_H7201) || defined (CONFIG_CPU_H7202)
@ we could use the id register on H7202, but this is not
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-highbank/include/mach/entry-macro.S

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/mach-integrator/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@
#include <mach/platform.h>
#include <mach/irqs.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
/* FIXME: should not be using soo many LDRs here */
ldr \base, =IO_ADDRESS(INTEGRATOR_IC_BASE)
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop13xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
*/
.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
mrc p15, 0, \tmp, c15, c1, 0
orr \tmp, \tmp, #(1 << 6)
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop32x/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*/
#include <mach/iop32x.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
mrc p15, 0, \tmp, c15, c1, 0
orr \tmp, \tmp, #(1 << 6)
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop33x/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
*/
#include <mach/iop33x.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
mrc p15, 0, \tmp, c15, c1, 0
orr \tmp, \tmp, #(1 << 6)
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-ixp2000/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@
*/
#include <mach/irqs.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp

mov \irqnr, #0x0 @clear out irqnr as default
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-ixp23xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
* arch/arm/mach-ixp23xx/include/mach/entry-macro.S
*/

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqnr, =(IXP23XX_INTC_VIRT + IXP23XX_INTR_IRQ_ENC_ST_OFFSET)
ldr \irqnr, [\irqnr] @ get interrupt number
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-ixp4xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@
*/
#include <mach/hardware.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqstat, =(IXP4XX_INTC_BASE_VIRT+IXP4XX_ICIP_OFFSET)
ldr \irqstat, [\irqstat] @ get interrupts
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-kirkwood/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include <mach/bridge-regs.h>

.macro disable_fiq
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =IRQ_VIRT_BASE
.endm
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-ks8695/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@
#include <mach/hardware.h>
#include <mach/regs-irq.h>

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =KS8695_IRQ_VA @ Base address of interrupt controller
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \irqstat, [\base, #KS8695_INTMS] @ Mask Status register

Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-lpc32xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@

#define LPC32XX_INTC_MASKED_STATUS_OFS 0x8

.macro disable_fiq
.endm

.macro get_irqnr_preamble, base, tmp
ldr \base, =IO_ADDRESS(LPC32XX_MIC_BASE)
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

/*
* Return IRQ number in irqnr. Also return processor Z flag status in CPSR
* as set if an interrupt is pending.
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-mmp/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

#include <mach/regs-icu.h>

.macro disable_fiq
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

.macro get_irqnr_preamble, base, tmp
mrc p15, 0, \tmp, c0, c0, 0 @ CPUID
and \tmp, \tmp, #0xff00
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-msm/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
*
*/

.macro disable_fiq
.endm

.macro arch_ret_to_user, tmp1, tmp2
.endm

#if !defined(CONFIG_ARM_GIC)
#include <mach/msm_iomap.h>

Expand Down
Loading

0 comments on commit 230f984

Please sign in to comment.