Path: blob/master/arch/arm/mach-mmp/include/mach/entry-macro.S
15162 views
/*1* linux/arch/arm/mach-mmp/include/mach/entry-macro.S2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*/78#include <mach/regs-icu.h>910.macro disable_fiq11.endm1213.macro arch_ret_to_user, tmp1, tmp214.endm1516.macro get_irqnr_preamble, base, tmp17mrc p15, 0, \tmp, c0, c0, 0 @ CPUID18and \tmp, \tmp, #0xff0019cmp \tmp, #0x580020ldr \base, =ICU_VIRT_BASE21addne \base, \base, #0x10c @ PJ1 AP INT SEL register22addeq \base, \base, #0x104 @ PJ4 IRQ SEL register23.endm2425.macro get_irqnr_and_base, irqnr, irqstat, base, tmp26ldr \tmp, [\base, #0]27and \irqnr, \tmp, #0x3f28tst \tmp, #(1 << 6)29.endm303132