[PATCH] ARM: Allow machine to specify it's own IRQ handlers at run-time
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Dec 6 05:11:00 EST 2010
On Mon, Dec 06, 2010 at 05:31:46PM +0800, Eric Miao wrote:
> Grrrr... wrong copy indeed. Corrected version below, I also made it less
> intrusive by judging on handle_arch_irq being NULL or not so to fall back
> to the original way of handling.
...
> diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
> index c09e357..4f446a2 100644
> --- a/arch/arm/kernel/entry-armv.S
> +++ b/arch/arm/kernel/entry-armv.S
> @@ -30,6 +30,13 @@
> * Interrupt handling. Preserves r7, r8, r9
> */
> .macro irq_handler
> +#ifdef CONFIG_MULTI_IRQ_HANDLER
> + ldr r1, =handle_arch_irq
> + cmp r1, #0
> + movne r0, sp
> + adrne lr, BSYM(9997f)
> + ldrne pc, [r1]
> +#endif
Except this won't - you're testing the address of handle_arch_irq for
NULL, which it'll never be.
More information about the linux-arm-kernel
mailing list