entry-macro.S clean-up
Subsystems (25)
v2 cover entry-macro.S clean-up
From: Rob Herring <[email protected]>
With the recent MULTI_IRQ_HANDLER support, many of the platform entry-macro.S files can be removed. This series removes empty isable_fiq and arch_ret_to_user macros from most platforms.
This leaves iop13xx, iop32x and iop33x with compile time difference from other platforms.
changes in v2:
- Change CONFIG_ARCH_HAS_RET_TO_USER to CONFIG_NEED_RET_TO_USER
- Add runtime installed default fiq handler to RiscPC
Rob
Rob Herring (4):
ARM: make arch_ret_to_user macro optional
ARM: rpc: make default fiq handler run-time installed
ARM: make entry-macro.S depend on !MULTI_IRQ_HANDLER
ARM: remove empty disable_fiq and arch_ret_to_user macros
arch/arm/Kconfig | 6 ++++ arch/arm/kernel/entry-armv.S | 3 +- arch/arm/kernel/entry-common.S | 8 +++++- arch/arm/mach-at91/include/mach/entry-macro.S | 6 ---- arch/arm/mach-bcmring/include/mach/entry-macro.S | 6 ---- arch/arm/mach-clps711x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-cns3xxx/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-davinci/include/mach/entry-macro.S | 6 ---- arch/arm/mach-dove/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ebsa110/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ep93xx/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-exynos/include/mach/entry-macro.S | 16 ----------- .../arm/mach-footbridge/include/mach/entry-macro.S | 6 ---- arch/arm/mach-gemini/include/mach/entry-macro.S | 6 ---- arch/arm/mach-h720x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-highbank/include/mach/entry-macro.S | 5 --- .../arm/mach-integrator/include/mach/entry-macro.S | 6 ---- arch/arm/mach-iop13xx/include/mach/entry-macro.S | 3 -- arch/arm/mach-iop32x/include/mach/entry-macro.S | 3 -- arch/arm/mach-iop33x/include/mach/entry-macro.S | 3 -- arch/arm/mach-ixp2000/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ixp23xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ixp4xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-kirkwood/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ks8695/include/mach/entry-macro.S | 6 ---- arch/arm/mach-lpc32xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mmp/include/mach/entry-macro.S | 6 ---- arch/arm/mach-msm/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mv78xx0/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mxs/include/mach/entry-macro.S | 6 ---- arch/arm/mach-netx/include/mach/entry-macro.S | 26 ------------------- arch/arm/mach-nomadik/include/mach/entry-macro.S | 13 --------- arch/arm/mach-omap1/include/mach/entry-macro.S | 6 ---- arch/arm/mach-omap2/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-orion5x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-picoxcell/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-pnx4008/include/mach/entry-macro.S | 6 ---- arch/arm/mach-prima2/include/mach/entry-macro.S | 7 ----- arch/arm/mach-pxa/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-realview/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-rpc/Makefile | 2 +- arch/arm/mach-rpc/fiq.S | 12 +++++++++ arch/arm/mach-rpc/include/mach/entry-macro.S | 4 --- arch/arm/mach-rpc/irq.c | 6 ++++ arch/arm/mach-s3c2410/include/mach/entry-macro.S | 8 ------ arch/arm/mach-s3c64xx/include/mach/entry-macro.S | 19 -------------- arch/arm/mach-s5p64x0/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-s5pc100/include/mach/entry-macro.S | 6 ---- arch/arm/mach-s5pv210/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-sa1100/include/mach/entry-macro.S | 6 ---- arch/arm/mach-shark/include/mach/entry-macro.S | 6 ---- arch/arm/mach-shmobile/include/mach/entry-macro.S | 22 ---------------- arch/arm/mach-spear3xx/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-spear6xx/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-tegra/include/mach/entry-macro.S | 20 -------------- arch/arm/mach-u300/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-ux500/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-versatile/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-vexpress/include/mach/entry-macro.S | 5 --- arch/arm/mach-vt8500/include/mach/entry-macro.S | 6 ---- arch/arm/mach-w90x900/include/mach/entry-macro.S | 8 ------ arch/arm/mach-zynq/include/mach/entry-macro.S | 27 -------------------- arch/arm/plat-mxc/include/mach/entry-macro.S | 16 ----------- 63 files changed, 34 insertions(+), 586 deletions(-) delete mode 100644 arch/arm/mach-cns3xxx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-ep93xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-exynos/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-highbank/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-netx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-nomadik/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-omap2/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-picoxcell/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-pxa/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-realview/include/mach/entry-macro.S create mode 100644 arch/arm/mach-rpc/fiq.S delete mode 100644 arch/arm/mach-s3c64xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-s5p64x0/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-s5pv210/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-shmobile/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-spear3xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-spear6xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-tegra/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-u300/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-ux500/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-versatile/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-vexpress/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-zynq/include/mach/entry-macro.S delete mode 100644 arch/arm/plat-mxc/include/mach/entry-macro.S
Signature · 1 line
1.7.5.4
PATCH v2 1/4 ARM: make arch_ret_to_user macro optional
From: Rob Herring <[email protected]>
Only 3 platforms need arch_ret_to_user macro, so add NEED_RET_TO_USER kconfig option and make iop13xx, iop32x and iop33x select it.
--- arch/arm/Kconfig | 6 ++++++ arch/arm/kernel/entry-common.S | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletions(-)
arch/arm/Kconfig +6 -0
@@ -186,6 +186,9 @@ config GENERIC_ISA_DMA config FIQ bool +config NEED_RET_TO_USER + bool + config ARCH_MTD_XIP bool
@@ -479,6 +482,7 @@ config ARCH_IOP13XX select ARCH_SUPPORTS_MSI select VMSPLIT_1G select NEED_MACH_MEMORY_H + select NEED_RET_TO_USER help Support for Intel's IOP13XX (XScale) family of processors.
@@ -486,6 +490,7 @@ config ARCH_IOP32X bool "IOP32x-based" depends on MMU select CPU_XSCALE + select NEED_RET_TO_USER select PLAT_IOP select PCI select ARCH_REQUIRE_GPIOLIB
@@ -497,6 +502,7 @@ config ARCH_IOP33X bool "IOP33x-based" depends on MMU select CPU_XSCALE + select NEED_RET_TO_USER select PLAT_IOP select PCI select ARCH_REQUIRE_GPIOLIB
arch/arm/kernel/entry-common.S +7 -1
@@ -10,9 +10,15 @@ #include <asm/unistd.h> #include <asm/ftrace.h> -#include <mach/entry-macro.S> #include <asm/unwind.h> +#ifdef CONFIG_NEED_RET_TO_USER +#include <mach/entry-macro.S> +#else + .macro arch_ret_to_user, tmp1, tmp2 + .endm +#endif + #include "entry-header.S"
Signature · 1 line
1.7.5.4
PATCH v2 1/4 ARM: make arch_ret_to_user macro optional
Quoted 6 lines · Rob Herring
From: Rob Herring <[email protected]>
Only 3 platforms need
arch_ret_to_usermacro, so addNEED_RET_TO_USERkconfig option and make iop13xx, iop32x and iop33x select it.Signed-off-by Rob Herring <[email protected]>
Quoted 67 lines
--- arch/arm/Kconfig | 6 ++++++ arch/arm/kernel/entry-common.S | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletions(-)arch/arm/Kconfig +6
-0@@ -186,6 +186,9 @@ config GENERIC_ISA_DMA config FIQ bool +config NEED_RET_TO_USER + bool + config ARCH_MTD_XIP bool@@ -479,6 +482,7 @@ config ARCH_IOP13XX select ARCH_SUPPORTS_MSI select VMSPLIT_1G select NEED_MACH_MEMORY_H + select NEED_RET_TO_USER help Support for Intel's IOP13XX (XScale) family of processors.@@ -486,6 +490,7 @@ config ARCH_IOP32X bool "IOP32x-based" depends on MMU select CPU_XSCALE + select NEED_RET_TO_USER select PLAT_IOP select PCI select ARCH_REQUIRE_GPIOLIB@@ -497,6 +502,7 @@ config ARCH_IOP33X bool "IOP33x-based" depends on MMU select CPU_XSCALE + select NEED_RET_TO_USER select PLAT_IOP select PCI select ARCH_REQUIRE_GPIOLIBarch/arm/kernel/entry-common.S +7
-1@@ -10,9 +10,15 @@ #include <asm/unistd.h> #include <asm/ftrace.h> -#include <mach/entry-macro.S> #include <asm/unwind.h> +#ifdef CONFIG_NEED_RET_TO_USER +#include <mach/entry-macro.S> +#else + .macro arch_ret_to_user, tmp1, tmp2 + .endm +#endif + #include "entry-header.S"Signature · 1 line
1.7.5.4
PATCH v2 2/4 ARM: rpc: make default fiq handler run-time installed
In reply to Rob HerringFrom: Rob Herring <[email protected]>
Only rpc uses disable_fiq macro. Change it to a run-time installed default FIQ handler. The handler is installed before interrupts are enabled so the behavior should be unchanged.
--- arch/arm/mach-rpc/Makefile | 2 +- arch/arm/mach-rpc/fiq.S | 12 ++++++++++++ arch/arm/mach-rpc/irq.c | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-rpc/fiq.S
arch/arm/mach-rpc/Makefile +1 -1
@@ -4,7 +4,7 @@ # Object file lists. -obj-y := dma.o irq.o riscpc.o +obj-y := dma.o fiq.o irq.o riscpc.o obj-m := obj-n := obj- :=
arch/arm/mach-rpc/fiq.S new file +12 -0
@@ -0,0 +1,12 @@ +#include <linux/linkage.h> +#include <asm/assembler.h> +#include <mach/hardware.h> +#include <mach/entry-macro.S> + + .text + + .global rpc_default_fiq_end +ENTRY(rpc_default_fiq_start) + disable_fiq + subs pc, lr, #4 +rpc_default_fiq_end:
arch/arm/mach-rpc/irq.c +6 -0
@@ -5,6 +5,7 @@#include <asm/mach/irq.h> #include <asm/hardware/iomd.h> #include <asm/irq.h> +#include <asm/fiq.h> static void iomd_ack_irq_a (struct irq_data *d) {
@@ -112,6 +113,8 @@ static struct irq_chip iomd_fiq_chip = { .irq_unmask = iomd_unmask_irq_fiq, }; +extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end; +void __init rpc_init_irq (void ) {unsigned int irq, flags;
@@ -121,6 +124,9 @@ void __init rpc_init_irq(void)iomd_writeb (0 ,IOMD_FIQMASK );iomd_writeb (0 ,IOMD_DMAMASK ); +set_fiq_handler (&rpc_default_fiq_start, + &rpc_default_fiq_end - &rpc_default_fiq_start); +for (irq =0 ; irq <NR_IRQS ; irq++) { flags =IRQF_VALID ;
Signature · 1 line
1.7.5.4
PATCH v2 2/4 ARM: rpc: make default fiq handler run-time installed
Quoted 4 lines · Rob Herring
From: Rob Herring <[email protected]>
Only rpc uses
disable_fiqmacro. Change it to a run-time installed default FIQ handler. The handler is installed before interrupts are
s/interrupts/FIQs/
Quoted 29 lines
enabled so the behavior should be unchanged.
Signed-off-by Rob Herring <[email protected]>--- arch/arm/mach-rpc/Makefile | 2 +- arch/arm/mach-rpc/fiq.S | 12 ++++++++++++ arch/arm/mach-rpc/irq.c | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-rpc/fiq.Sarch/arm/mach-rpc/Makefile +1
-1@@ -4,7 +4,7 @@ # Object file lists. -obj-y := dma.o irq.o riscpc.o +obj-y := dma.o fiq.o irq.o riscpc.o obj-m := obj-n := obj- :=arch/arm/mach-rpc/fiq.S new file +0
-0
arch/arm/mach-rpc/fiq.S line 10
Quoted 10 lines
arch/arm/mach-rpc/fiq.S new file +10
-0@@ -0,0 +1,12 @@ +#include <linux/linkage.h> +#include <asm/assembler.h> +#include <mach/hardware.h> +#include <mach/entry-macro.S> + + .text + + .global rpc_default_fiq_end +ENTRY(rpc_default_fiq_start) + disable_fiq
Given that you want to get rid of disable_fiq, it would be a good idea to replace it with its content here.
Quoted 36 lines
arch/arm/mach-rpc/fiq.S new file +2
-0+ subs pc, lr, #4 +rpc_default_fiq_end:arch/arm/mach-rpc/irq.c +6
-0@@ -5,6 +5,7 @@#include <asm/mach/irq.h> #include <asm/hardware/iomd.h> #include <asm/irq.h> +#include <asm/fiq.h> static void iomd_ack_irq_a (struct irq_data *d) {@@ -112,6 +113,8 @@ static struct irq_chip iomd_fiq_chip = { .irq_unmask = iomd_unmask_irq_fiq, }; +extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end; +void __init rpc_init_irq (void ) {unsigned int irq, flags;@@ -121,6 +124,9 @@ void __init rpc_init_irq(void)iomd_writeb (0 ,IOMD_FIQMASK );iomd_writeb (0 ,IOMD_DMAMASK ); +set_fiq_handler (&rpc_default_fiq_start, + &rpc_default_fiq_end - &rpc_default_fiq_start); +for (irq =0 ; irq <NR_IRQS ; irq++) { flags =IRQF_VALID ;Signature · 1 line
1.7.5.4
PATCH v3 1/1 ARM: rpc: make default fiq handler run-time installed
From: Rob Herring <[email protected]>
Only rpc uses disable_fiq macro. Change it to a run-time installed default FIQ handler. The handler is installed before FIQ is enabled so the behavior should be unchanged.
---
Nico,
This removes the use of disable_fiq now. To keep it bisectable, the macro gets removed from entry-macro-iomd.S in the last patch now.
Rob
arch/arm/mach-rpc/Makefile | 2 +- arch/arm/mach-rpc/fiq.S | 16 ++++++++++++++++ arch/arm/mach-rpc/irq.c | 6 ++++++ 3 files changed, 23 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-rpc/fiq.S
arch/arm/mach-rpc/Makefile +1 -1
@@ -4,7 +4,7 @@ # Object file lists. -obj-y := dma.o irq.o riscpc.o +obj-y := dma.o fiq.o irq.o riscpc.o obj-m := obj-n := obj- :=
arch/arm/mach-rpc/fiq.S new file +16 -0
@@ -0,0 +1,16 @@ +#include <linux/linkage.h> +#include <asm/assembler.h> +#include <mach/hardware.h> +#include <mach/entry-macro.S> + + .text + + .global rpc_default_fiq_end +ENTRY(rpc_default_fiq_start) + mov r12, #ioc_base_high + .if ioc_base_low + orr r12, r12, #ioc_base_low + .endif + strb r12, [r12, #0x38] @ Disable FIQ register + subs pc, lr, #4 +rpc_default_fiq_end:
arch/arm/mach-rpc/irq.c +6 -0
@@ -5,6 +5,7 @@#include <asm/mach/irq.h> #include <asm/hardware/iomd.h> #include <asm/irq.h> +#include <asm/fiq.h> static void iomd_ack_irq_a (struct irq_data *d) {
@@ -112,6 +113,8 @@ static struct irq_chip iomd_fiq_chip = { .irq_unmask = iomd_unmask_irq_fiq, }; +extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end; +void __init rpc_init_irq (void ) {unsigned int irq, flags;
@@ -121,6 +124,9 @@ void __init rpc_init_irq(void)iomd_writeb (0 ,IOMD_FIQMASK );iomd_writeb (0 ,IOMD_DMAMASK ); +set_fiq_handler (&rpc_default_fiq_start, + &rpc_default_fiq_end - &rpc_default_fiq_start); +for (irq =0 ; irq <NR_IRQS ; irq++) { flags =IRQF_VALID ;
Signature · 1 line
1.7.5.4
PATCH v3 1/1 ARM: rpc: make default fiq handler run-time installed
Quoted 13 lines · Rob Herring
From: Rob Herring <[email protected]>
Only rpc uses
disable_fiqmacro. Change it to a run-time installed default FIQ handler. The handler is installed before FIQ is enabled so the behavior should be unchanged.Signed-off-by Rob Herring <[email protected]>---
Nico,This removes the use of
disable_fiqnow. To keep it bisectable, the macro gets removed fromentry-macro-iomd.Sin the last patch now.
[...]
arch/arm/mach-rpc/fiq.S line 4
Quoted 7 lines
arch/arm/mach-rpc/fiq.S new file +4
-0@@ -0,0 +1,16 @@ +#include <linux/linkage.h> +#include <asm/assembler.h> +#include <mach/hardware.h> +#include <mach/entry-macro.S>
Do you need to include <mach/entry-macro.S> here?
In any case:
Quoted 46 lines
arch/arm/mach-rpc/fiq.S new file +12
-0+ + .text + + .global rpc_default_fiq_end +ENTRY(rpc_default_fiq_start) + mov r12, #ioc_base_high + .if ioc_base_low + orr r12, r12, #ioc_base_low + .endif + strb r12, [r12, #0x38] @ Disable FIQ register + subs pc, lr, #4 +rpc_default_fiq_end:arch/arm/mach-rpc/irq.c +6
-0@@ -5,6 +5,7 @@#include <asm/mach/irq.h> #include <asm/hardware/iomd.h> #include <asm/irq.h> +#include <asm/fiq.h> static void iomd_ack_irq_a (struct irq_data *d) {@@ -112,6 +113,8 @@ static struct irq_chip iomd_fiq_chip = { .irq_unmask = iomd_unmask_irq_fiq, }; +extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end; +void __init rpc_init_irq (void ) {unsigned int irq, flags;@@ -121,6 +124,9 @@ void __init rpc_init_irq(void)iomd_writeb (0 ,IOMD_FIQMASK );iomd_writeb (0 ,IOMD_DMAMASK ); +set_fiq_handler (&rpc_default_fiq_start, + &rpc_default_fiq_end - &rpc_default_fiq_start); +for (irq =0 ; irq <NR_IRQS ; irq++) { flags =IRQF_VALID ;Signature · 1 line
1.7.5.4
PATCH v3 1/1 ARM: rpc: make default fiq handler run-time installed
Quoted 18 lines · Nicolas Pitre
Quoted 13 lines · Rob Herring
From: Rob Herring <[email protected]>
Only rpc uses
disable_fiqmacro. Change it to a run-time installed default FIQ handler. The handler is installed before FIQ is enabled so the behavior should be unchanged.Signed-off-by Rob Herring <[email protected]>---
Nico,This removes the use of
disable_fiqnow. To keep it bisectable, the macro gets removed fromentry-macro-iomd.Sin the last patch now.[...]
Quoted 10 lines
arch/arm/mach-rpc/fiq.S line 4
Quoted 7 lines
arch/arm/mach-rpc/fiq.S new file +4
-0@@ -0,0 +1,16 @@ +#include <linux/linkage.h> +#include <asm/assembler.h> +#include <mach/hardware.h> +#include <mach/entry-macro.S>Do you need to include <
mach/entry-macro.S> here?
Yes, for...
Quoted 10 lines
In any case:
Acked-by Nicolas Pitre <[email protected]>arch/arm/mach-rpc/fiq.S line 10
Quoted 6 lines
arch/arm/mach-rpc/fiq.S new file +6
-0+ + .text + + .global rpc_default_fiq_end +ENTRY(rpc_default_fiq_start) + mov r12, #ioc_base_high
...these defines which are needed in both files.
Rob
Quoted 40 lines
Quoted 40 lines
arch/arm/mach-rpc/fiq.S new file +6
-0+ .if ioc_base_low + orr r12, r12, #ioc_base_low + .endif + strb r12, [r12, #0x38] @ Disable FIQ register + subs pc, lr, #4 +rpc_default_fiq_end:arch/arm/mach-rpc/irq.c +6
-0@@ -5,6 +5,7 @@#include <asm/mach/irq.h> #include <asm/hardware/iomd.h> #include <asm/irq.h> +#include <asm/fiq.h> static void iomd_ack_irq_a (struct irq_data *d) {@@ -112,6 +113,8 @@ static struct irq_chip iomd_fiq_chip = { .irq_unmask = iomd_unmask_irq_fiq, }; +extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end; +void __init rpc_init_irq (void ) {unsigned int irq, flags;@@ -121,6 +124,9 @@ void __init rpc_init_irq(void)iomd_writeb (0 ,IOMD_FIQMASK );iomd_writeb (0 ,IOMD_DMAMASK ); +set_fiq_handler (&rpc_default_fiq_start, + &rpc_default_fiq_end - &rpc_default_fiq_start); +for (irq =0 ; irq <NR_IRQS ; irq++) { flags =IRQF_VALID ;Signature · 1 line
1.7.5.4
PATCH v2 3/4 ARM: make entry-macro.S depend on !MULTI_IRQ_HANDLER
In reply to Rob HerringFrom: Rob Herring <[email protected]>
With the removal of disable_fiq on rpc and addition MULTI_IRQ_HANDLER, entry-macro.S is no longer needed for platforms that select MULTI_IRQ_HANDLER and the include of it can be conditional.
--- arch/arm/kernel/entry-armv.S | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/kernel/entry-armv.S +2 -1
@@ -19,7 +19,9 @@ #include <asm/glue-df.h> #include <asm/glue-pf.h> #include <asm/vfpmacros.h> +#ifndef CONFIG_MULTI_IRQ_HANDLER #include <mach/entry-macro.S> +#endif #include <asm/thread_notify.h> #include <asm/unwind.h> #include <asm/unistd.h>
@@ -1101,7 +1103,6 @@ __stubs_start: * get out of that mode without clobbering one register. */ vector_fiq: - disable_fiq subs pc, lr, #4 /*=============================================================================
Signature · 1 line
1.7.5.4
PATCH v2 3/4 ARM: make entry-macro.S depend on !MULTI_IRQ_HANDLER
Quoted 7 lines · Rob Herring
From: Rob Herring <[email protected]>
With the removal of
disable_fiqon rpc and additionMULTI_IRQ_HANDLER,entry-macro.Sis no longer needed for platforms that selectMULTI_IRQ_HANDLERand the include of it can be conditional.Signed-off-by Rob Herring <[email protected]>
Quoted 29 lines
--- arch/arm/kernel/entry-armv.S | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)arch/arm/kernel/entry-armv.S +2
-1@@ -19,7 +19,9 @@ #include <asm/glue-df.h> #include <asm/glue-pf.h> #include <asm/vfpmacros.h> +#ifndef CONFIG_MULTI_IRQ_HANDLER #include <mach/entry-macro.S> +#endif #include <asm/thread_notify.h> #include <asm/unwind.h> #include <asm/unistd.h>@@ -1101,7 +1103,6 @@ __stubs_start: * get out of that mode without clobbering one register. */ vector_fiq: - disable_fiq subs pc, lr, #4 /*=============================================================================Signature · 1 line
1.7.5.4
PATCH v2 3/4 ARM: make entry-macro.S depend on !MULTI_IRQ_HANDLER
In reply to Rob HerringQuoted 7 lines · Rob Herring
From: Rob Herring <[email protected]>
With the removal of
disable_fiqon rpc and additionMULTI_IRQ_HANDLER,entry-macro.Sis no longer needed for platforms that selectMULTI_IRQ_HANDLERand the include of it can be conditional.Signed-off-by Rob Herring <[email protected]>
For ep93xx:
PATCH v2 4/4 ARM: remove empty disable_fiq and arch_ret_to_user macros
In reply to Rob HerringFrom: Rob Herring <[email protected]>
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.
--- arch/arm/mach-at91/include/mach/entry-macro.S | 6 ---- arch/arm/mach-bcmring/include/mach/entry-macro.S | 6 ---- arch/arm/mach-clps711x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-cns3xxx/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-davinci/include/mach/entry-macro.S | 6 ---- arch/arm/mach-dove/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ebsa110/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ep93xx/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-exynos/include/mach/entry-macro.S | 16 ----------- .../arm/mach-footbridge/include/mach/entry-macro.S | 6 ---- arch/arm/mach-gemini/include/mach/entry-macro.S | 6 ---- arch/arm/mach-h720x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-highbank/include/mach/entry-macro.S | 5 --- .../arm/mach-integrator/include/mach/entry-macro.S | 6 ---- arch/arm/mach-iop13xx/include/mach/entry-macro.S | 3 -- arch/arm/mach-iop32x/include/mach/entry-macro.S | 3 -- arch/arm/mach-iop33x/include/mach/entry-macro.S | 3 -- arch/arm/mach-ixp2000/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ixp23xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ixp4xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-kirkwood/include/mach/entry-macro.S | 6 ---- arch/arm/mach-ks8695/include/mach/entry-macro.S | 6 ---- arch/arm/mach-lpc32xx/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mmp/include/mach/entry-macro.S | 6 ---- arch/arm/mach-msm/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mv78xx0/include/mach/entry-macro.S | 6 ---- arch/arm/mach-mxs/include/mach/entry-macro.S | 6 ---- arch/arm/mach-netx/include/mach/entry-macro.S | 26 ------------------- arch/arm/mach-nomadik/include/mach/entry-macro.S | 13 --------- arch/arm/mach-omap1/include/mach/entry-macro.S | 6 ---- arch/arm/mach-omap2/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-orion5x/include/mach/entry-macro.S | 6 ---- arch/arm/mach-picoxcell/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-pnx4008/include/mach/entry-macro.S | 6 ---- arch/arm/mach-prima2/include/mach/entry-macro.S | 7 ----- arch/arm/mach-pxa/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-realview/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-rpc/include/mach/entry-macro.S | 4 --- arch/arm/mach-s3c2410/include/mach/entry-macro.S | 8 ------ arch/arm/mach-s3c64xx/include/mach/entry-macro.S | 19 -------------- arch/arm/mach-s5p64x0/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-s5pc100/include/mach/entry-macro.S | 6 ---- arch/arm/mach-s5pv210/include/mach/entry-macro.S | 17 ------------ arch/arm/mach-sa1100/include/mach/entry-macro.S | 6 ---- arch/arm/mach-shark/include/mach/entry-macro.S | 6 ---- arch/arm/mach-shmobile/include/mach/entry-macro.S | 22 ---------------- arch/arm/mach-spear3xx/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-spear6xx/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-tegra/include/mach/entry-macro.S | 20 -------------- arch/arm/mach-u300/include/mach/entry-macro.S | 16 ----------- arch/arm/mach-ux500/include/mach/entry-macro.S | 18 ------------- arch/arm/mach-versatile/include/mach/entry-macro.S | 15 ----------- arch/arm/mach-vexpress/include/mach/entry-macro.S | 5 --- arch/arm/mach-vt8500/include/mach/entry-macro.S | 6 ---- arch/arm/mach-w90x900/include/mach/entry-macro.S | 8 ------ arch/arm/mach-zynq/include/mach/entry-macro.S | 27 -------------------- arch/arm/plat-mxc/include/mach/entry-macro.S | 16 ----------- 57 files changed, 0 insertions(+), 583 deletions(-) delete mode 100644 arch/arm/mach-cns3xxx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-ep93xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-exynos/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-highbank/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-netx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-nomadik/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-omap2/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-picoxcell/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-pxa/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-realview/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-s3c64xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-s5p64x0/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-s5pv210/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-shmobile/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-spear3xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-spear6xx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-tegra/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-u300/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-ux500/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-versatile/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-vexpress/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-zynq/include/mach/entry-macro.S delete mode 100644 arch/arm/plat-mxc/include/mach/entry-macro.S
arch/arm/mach-at91/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-bcmring/include/mach/entry-macro.S +0 -6
@@ -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
@@ -77,6 +74,3 @@ .macro get_irqnr_preamble, base, tmp .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-clps711x/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-cns3xxx/include/mach/entry-macro.S deleted +0 -15
@@ -1,15 +0,0 @@ -/* - * Low-level IRQ helper macros for Cavium Networks platforms - * - * Copyright 2008 Cavium Networks - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, Version 2, as - * published by the Free Software Foundation. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-davinci/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-dove/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-ebsa110/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-ep93xx/include/mach/entry-macro.S deleted +0 -17
@@ -1,17 +0,0 @@ -/* - * arch/arm/mach-ep93xx/include/mach/entry-macro.S - * IRQ demultiplexing for EP93xx - * - * Copyright (C) 2006 Lennert Buytenhek <[email protected]> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-exynos/include/mach/entry-macro.S deleted +0 -16
@@ -1,16 +0,0 @@ -/* arch/arm/mach-exynos4/include/mach/entry-macro.S - * - * Cloned from arch/arm/mach-realview/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for EXYNOS4 platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. -*/ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-footbridge/include/mach/entry-macro.S +0 -6
@@ -14,9 +14,6 @@ .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
@@ -24,9 +21,6 @@ .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
arch/arm/mach-gemini/include/mach/entry-macro.S +0 -6
@@ -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]
arch/arm/mach-h720x/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-highbank/include/mach/entry-macro.S deleted +0 -5
@@ -1,5 +0,0 @@ - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-integrator/include/mach/entry-macro.S +0 -6
@@ -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)
arch/arm/mach-iop13xx/include/mach/entry-macro.S +0 -3
@@ -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)
arch/arm/mach-iop32x/include/mach/entry-macro.S +0 -3
@@ -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)
arch/arm/mach-iop33x/include/mach/entry-macro.S +0 -3
@@ -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)
arch/arm/mach-ixp2000/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-ixp23xx/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-ixp4xx/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-kirkwood/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-ks8695/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-lpc32xx/include/mach/entry-macro.S +0 -6
@@ -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.
arch/arm/mach-mmp/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-msm/include/mach/entry-macro.S +0 -6
@@ -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>
arch/arm/mach-mv78xx0/include/mach/entry-macro.S +0 -6
@@ -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
arch/arm/mach-mxs/include/mach/entry-macro.S +0 -6
@@ -23,9 +23,6 @@ #define MXS_ICOLL_VBASE MXS_IO_ADDRESS(MXS_ICOLL_BASE_ADDR) #define HW_ICOLL_STAT_OFFSET 0x70 - .macro disable_fiq - .endm - .macro get_irqnr_and_base, irqnr, irqstat, base, tmp ldr \irqnr, [\base, #HW_ICOLL_STAT_OFFSET] cmp \irqnr, #0x7F
@@ -36,6 +33,3 @@ .macro get_irqnr_preamble, base, tmp ldr \base, =MXS_ICOLL_VBASE .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-netx/include/mach/entry-macro.S deleted +0 -26
@@ -1,26 +0,0 @@ -/* - * arch/arm/mach-netx/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for Hilscher netX based platforms - * - * Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-nomadik/include/mach/entry-macro.S deleted +0 -13
@@ -1,13 +0,0 @@ -/* - * Low-level IRQ helper macros for Nomadik platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-omap1/include/mach/entry-macro.S +0 -6
@@ -14,15 +14,9 @@ #include <mach/irqs.h> #include <asm/hardware/gic.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 \base, =OMAP1_IO_ADDRESS(OMAP_IH1_BASE) ldr \irqnr, [\base, #IRQ_ITR_REG_OFFSET]
arch/arm/mach-omap2/include/mach/entry-macro.S deleted +0 -18
@@ -1,18 +0,0 @@ -/* - * arch/arm/plat-omap/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for OMAP-based platforms - * - * Copyright (C) 2009 Texas Instruments - * Added OMAP4 support - Santosh Shilimkar <[email protected]> - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-orion5x/include/mach/entry-macro.S +0 -6
@@ -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, =MAIN_IRQ_CAUSE .endm
arch/arm/mach-picoxcell/include/mach/entry-macro.S deleted +0 -16
@@ -1,16 +0,0 @@ -/* - * entry-macro.S - * - * Copyright (c) 2011 Picochip Ltd., Jamie Iles - * - * Low-level IRQ helper macros for picoXcell platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-pnx4008/include/mach/entry-macro.S +0 -6
@@ -25,15 +25,9 @@ #define SIC1_BASE_INT 32 #define SIC2_BASE_INT 64 - .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 /* decode the MIC interrupt numbers */ ldr \base, =IO_ADDRESS(PNX4008_INTCTRLMIC_BASE)
arch/arm/mach-prima2/include/mach/entry-macro.S +0 -7
@@ -20,10 +20,3 @@ cmp \irqnr, #0x40 @ the irq num can't be larger than 0x3f movges \irqnr, #0 .endm - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm -
arch/arm/mach-pxa/include/mach/entry-macro.S deleted +0 -15
@@ -1,15 +0,0 @@ -/* - * arch/arm/mach-pxa/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for PXA-based platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-realview/include/mach/entry-macro.S deleted +0 -16
@@ -1,16 +0,0 @@ -/* - * arch/arm/mach-realview/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for RealView platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm -
arch/arm/mach-rpc/include/mach/entry-macro.S +0 -4
@@ -10,7 +10,3 @@ orr \base, \base, #ioc_base_low .endif .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm -
arch/arm/mach-s3c2410/include/mach/entry-macro.S +0 -8
@@ -25,9 +25,6 @@ .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 \base, #S3C24XX_VA_IRQ
@@ -71,8 +68,3 @@ @@ exit here, Z flag unset if IRQ .endm - - /* currently don't need an disable_fiq macro */ - - .macro disable_fiq - .endm
arch/arm/mach-s3c64xx/include/mach/entry-macro.S deleted +0 -19
@@ -1,19 +0,0 @@ -/* arch/arm/mach-s3c6400/include/mach/entry-macro.S - * - * Copyright 2008 Openmoko, Inc. - * Copyright 2008 Simtec Electronics - * http://armlinux.simtec.co.uk/ - * Ben Dooks <[email protected]> - * - * Low-level IRQ helper macros for the Samsung S3C64XX series - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. -*/ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-s5p64x0/include/mach/entry-macro.S deleted +0 -17
@@ -1,17 +0,0 @@ -/* linux/arch/arm/mach-s5p64x0/include/mach/entry-macro.S - * - * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. - * http://www.samsung.com - * - * Low-level IRQ helper macros for the Samsung S5P64X0 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-s5pc100/include/mach/entry-macro.S +0 -6
@@ -12,14 +12,8 @@ * 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 .endm
arch/arm/mach-s5pv210/include/mach/entry-macro.S deleted +0 -17
@@ -1,17 +0,0 @@ -/* linux/arch/arm/mach-s5pv210/include/mach/entry-macro.S - * - * Copyright (c) 2010 Samsung Electronics Co., Ltd. - * http://www.samsung.com/ - * - * Low-level IRQ helper macros for the Samsung S5PV210 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-sa1100/include/mach/entry-macro.S +0 -6
@@ -8,17 +8,11 @@ * warranty of any kind, whether express or implied. */ - .macro disable_fiq - .endm - .macro get_irqnr_preamble, base, tmp mov \base, #0xfa000000 @ ICIP = 0xfa050000 add \base, \base, #0x00050000 .endm - .macro arch_ret_to_user, tmp1, tmp2 - .endm - .macro get_irqnr_and_base, irqnr, irqstat, base, tmp ldr \irqstat, [\base] @ get irqs ldr \irqnr, [\base, #4] @ ICMR = 0xfa050004
arch/arm/mach-shark/include/mach/entry-macro.S +0 -6
@@ -7,16 +7,10 @@ * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ - .macro disable_fiq - .endm - .macro get_irqnr_preamble, base, tmp mov \base, #0xe0000000 .endm - .macro arch_ret_to_user, tmp1, tmp2 - .endm - .macro get_irqnr_and_base, irqnr, irqstat, base, tmp mov \irqstat, #0x0C
arch/arm/mach-shmobile/include/mach/entry-macro.S deleted +0 -22
@@ -1,22 +0,0 @@ -/* - * Copyright (C) 2010 Paul Mundt - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-spear3xx/include/mach/entry-macro.S deleted +0 -18
@@ -1,18 +0,0 @@ -/* - * arch/arm/mach-spear3xx/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for SPEAr3xx machine family - * - * Copyright (C) 2009 ST Microelectronics - * Viresh Kumar<[email protected]> - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-spear6xx/include/mach/entry-macro.S deleted +0 -18
@@ -1,18 +0,0 @@ -/* - * arch/arm/mach-spear6xx/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for SPEAr6xx machine family - * - * Copyright (C) 2009 ST Microelectronics - * Rajeev Kumar<[email protected]> - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-tegra/include/mach/entry-macro.S deleted +0 -20
@@ -1,20 +0,0 @@ -/* arch/arm/mach-tegra/include/mach/entry-macro.S - * - * Copyright (C) 2009 Palm, Inc. - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-u300/include/mach/entry-macro.S deleted +0 -16
@@ -1,16 +0,0 @@ -/* - * - * arch-arm/mach-u300/include/mach/entry-macro.S - * - * - * Copyright (C) 2006-2009 ST-Ericsson AB - * License terms: GNU General Public License (GPL) version 2 - * Low-level IRQ helper macros for ST-Ericsson U300 - * Author: Linus Walleij <[email protected]> - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-ux500/include/mach/entry-macro.S deleted +0 -18
@@ -1,18 +0,0 @@ -/* - * Low-level IRQ helper macros for U8500 platforms - * - * Copyright (C) 2009 ST-Ericsson. - * - * This file is a copy of ARM Realview platform. - * -just satisfied checkpatch script. - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-versatile/include/mach/entry-macro.S deleted +0 -15
@@ -1,15 +0,0 @@ -/* - * arch/arm/mach-versatile/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for Versatile platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-vexpress/include/mach/entry-macro.S deleted +0 -5
@@ -1,5 +0,0 @@ - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/mach-vt8500/include/mach/entry-macro.S +0 -6
@@ -8,18 +8,12 @@ * warranty of any kind, whether express or implied. */ - .macro disable_fiq - .endm - .macro get_irqnr_preamble, base, tmp @ physical 0xd8140000 is virtual 0xf8140000 mov \base, #0xf8000000 orr \base, \base, #0x00140000 .endm - .macro arch_ret_to_user, tmp1, tmp2 - .endm - .macro get_irqnr_and_base, irqnr, irqstat, base, tmp ldr \irqnr, [\base] cmp \irqnr, #63 @ may be false positive, check interrupt status
arch/arm/mach-w90x900/include/mach/entry-macro.S +0 -8
@@ -15,9 +15,6 @@ .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 \base, #AIC_BA
@@ -27,8 +24,3 @@ cmp \irqnr, #0 .endm - - /* currently don't need an disable_fiq macro */ - - .macro disable_fiq - .endm
arch/arm/mach-zynq/include/mach/entry-macro.S deleted +0 -27
@@ -1,27 +0,0 @@ -/* - * arch/arm/mach-zynq/include/mach/entry-macro.S - * - * Low-level IRQ helper macros - * - * Copyright (C) 2011 Xilinx - * - * based on arch/plat-mxc/include/mach/entry-macro.S - * - * Copyright (C) 2007 Lennert Buytenhek <[email protected]> - * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
arch/arm/plat-mxc/include/mach/entry-macro.S deleted +0 -16
@@ -1,16 +0,0 @@ -/* - * Copyright (C) 2007 Lennert Buytenhek <[email protected]> - * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
Signature · 1 line
1.7.5.4
PATCH v2 4/4 ARM: remove empty disable_fiq and arch_ret_to_user macros
Quoted 13 lines · Rob Herring
From: Rob Herring <[email protected]>
Now that most platforms don't need
disable_fiqandarch_ret_to_usermacros, we can remove the empty macros or emptyentry-macro.Sfiles.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]>---
<...>
Quoted 1 line
arch/arm/mach-ep93xx/include/mach/entry-macro.S| 17 ------------
<...>
delete mode 100644 arch/arm/mach-ep93xx/include/mach/entry-macro.S
<...>
Quoted 13 lines
arch/arm/mach-ep93xx/include/mach/entry-macro.S deleted +0
-7@@ -1,17 +0,0 @@ -/* - * arch/arm/mach-ep93xx/include/mach/entry-macro.S - * IRQ demultiplexing for EP93xx - * - * Copyright (C) 2006 Lennert Buytenhek <[email protected]> - * - * This program is free software; you can redistribute it and/or modify
arch/arm/mach-ep93xx/include/mach/entry-macro.S line 17
Quoted 10 lines
arch/arm/mach-ep93xx/include/mach/entry-macro.S deleted +0
-10- * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - */ - - .macro disable_fiq - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm
For ep93xx:
PATCH v2 4/4 ARM: remove empty disable_fiq and arch_ret_to_user macros
In reply to Rob HerringQuoted 13 lines · Rob Herring
From: Rob Herring <[email protected]>
Now that most platforms don't need
disable_fiqandarch_ret_to_usermacros, we can remove the empty macros or emptyentry-macro.Sfiles.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]>---
...
Quoted 1 line
arch/arm/mach-mxs/include/mach/entry-macro.S | 6 ----
...
Quoted 1 line
arch/arm/plat-mxc/include/mach/entry-macro.S | 16 -----------
...
Quoted 1 line
delete mode 100644 arch/arm/plat-mxc/include/mach/entry-macro.S
Nice.