From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- .../arch/arm/include/asm/entry-macro-multi.S | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/include/asm/entry-macro-multi.S (limited to 'ANDROID_3.4.5/arch/arm/include/asm/entry-macro-multi.S') diff --git a/ANDROID_3.4.5/arch/arm/include/asm/entry-macro-multi.S b/ANDROID_3.4.5/arch/arm/include/asm/entry-macro-multi.S new file mode 100644 index 00000000..88d61815 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/include/asm/entry-macro-multi.S @@ -0,0 +1,39 @@ +#include + +/* + * Interrupt handling. Preserves r7, r8, r9 + */ + .macro arch_irq_handler_default + get_irqnr_preamble r6, lr +1: get_irqnr_and_base r0, r2, r6, lr + movne r1, sp + @ + @ routine called with r0 = irq number, r1 = struct pt_regs * + @ + adrne lr, BSYM(1b) + bne asm_do_IRQ + +#ifdef CONFIG_SMP + /* + * XXX + * + * this macro assumes that irqstat (r2) and base (r6) are + * preserved from get_irqnr_and_base above + */ + ALT_SMP(test_for_ipi r0, r2, r6, lr) + ALT_UP_B(9997f) + movne r1, sp + adrne lr, BSYM(1b) + bne do_IPI +#endif +9997: + .endm + + .macro arch_irq_handler, symbol_name + .align 5 + .global \symbol_name +\symbol_name: + mov r8, lr + arch_irq_handler_default + mov pc, r8 + .endm -- cgit