PageRenderTime 32ms CodeModel.GetById 28ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
Assembly | 30 lines | 25 code | 5 blank | 0 comment | 0 complexity | 4ff5ccb26343137be3c3a591319c7503 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 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	disable_fiq
12	.endm
13
14	.macro	arch_ret_to_user, tmp1, tmp2
15	.endm
16
17	.macro	get_irqnr_preamble, base, tmp
18	mrc	p15, 0, \tmp, c0, c0, 0		@ CPUID
19	and	\tmp, \tmp, #0xff00
20	cmp	\tmp, #0x5800
21	ldr	\base, =ICU_VIRT_BASE
22	addne	\base, \base, #0x10c		@ PJ1 AP INT SEL register
23	addeq	\base, \base, #0x104		@ PJ4 IRQ SEL register
24	.endm
25
26	.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp
27	ldr	\tmp, [\base, #0]
28	and	\irqnr, \tmp, #0x3f
29	tst	\tmp, #(1 << 6)
30	.endm