2011-06-13 12:46:44 +07:00
|
|
|
#include <asm/assembler.h>
|
|
|
|
|
2010-12-22 19:20:08 +07:00
|
|
|
/*
|
|
|
|
* Interrupt handling. Preserves r7, r8, r9
|
|
|
|
*/
|
|
|
|
.macro arch_irq_handler_default
|
2011-06-26 16:34:02 +07:00
|
|
|
get_irqnr_preamble r6, lr
|
|
|
|
1: get_irqnr_and_base r0, r2, r6, lr
|
2010-12-22 19:20:08 +07:00
|
|
|
movne r1, sp
|
|
|
|
@
|
|
|
|
@ routine called with r0 = irq number, r1 = struct pt_regs *
|
|
|
|
@
|
2015-04-21 20:17:25 +07:00
|
|
|
badrne lr, 1b
|
2010-12-22 19:20:08 +07:00
|
|
|
bne asm_do_IRQ
|
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
/*
|
|
|
|
* XXX
|
|
|
|
*
|
2011-06-26 16:34:02 +07:00
|
|
|
* this macro assumes that irqstat (r2) and base (r6) are
|
2010-12-22 19:20:08 +07:00
|
|
|
* preserved from get_irqnr_and_base above
|
|
|
|
*/
|
2011-06-26 16:34:02 +07:00
|
|
|
ALT_SMP(test_for_ipi r0, r2, r6, lr)
|
2010-12-22 19:20:08 +07:00
|
|
|
ALT_UP_B(9997f)
|
2011-01-07 05:31:35 +07:00
|
|
|
movne r1, sp
|
2015-04-21 20:17:25 +07:00
|
|
|
badrne lr, 1b
|
2010-12-22 19:20:08 +07:00
|
|
|
bne do_IPI
|
|
|
|
#endif
|
|
|
|
9997:
|
|
|
|
.endm
|
|
|
|
|
|
|
|
.macro arch_irq_handler, symbol_name
|
|
|
|
.align 5
|
|
|
|
.global \symbol_name
|
|
|
|
\symbol_name:
|
2011-06-26 16:34:02 +07:00
|
|
|
mov r8, lr
|
2010-12-22 19:20:08 +07:00
|
|
|
arch_irq_handler_default
|
2014-06-30 22:29:12 +07:00
|
|
|
ret r8
|
2010-12-22 19:20:08 +07:00
|
|
|
.endm
|