PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/arch/arm/mach-mmp/include/mach/entry-macro.S

https://github.com/AICP/kernel_google_msm
Assembly | 24 lines | 21 code | 3 blank | 0 comment | 0 complexity | b96ba4baafa6fb6e2e0dc839ce7210a4 MD5 | raw file
 1/*
 2 * linux/arch/arm/mach-mmp/include/mach/entry-macro.S
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License version 2 as
 6 * published by the Free Software Foundation.
 7 */
 8
 9#include <mach/regs-icu.h>
10
11	.macro	get_irqnr_preamble, base, tmp
12	mrc	p15, 0, \tmp, c0, c0, 0		@ CPUID
13	and	\tmp, \tmp, #0xff00
14	cmp	\tmp, #0x5800
15	ldr	\base, =ICU_VIRT_BASE
16	addne	\base, \base, #0x10c		@ PJ1 AP INT SEL register
17	addeq	\base, \base, #0x104		@ PJ4 IRQ SEL register
18	.endm
19
20	.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp
21	ldr	\tmp, [\base, #0]
22	and	\irqnr, \tmp, #0x3f
23	tst	\tmp, #(1 << 6)
24	.endm