1 /* arch/arm/mach-tegra/include/mach/entry-macro.S
3 * Copyright (C) 2009 Palm, Inc.
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <mach/iomap.h>
18 #define HAVE_GET_IRQNR_PREAMBLE
19 #include <asm/hardware/entry-macro-gic.S>
21 /* Uses the GIC interrupt controller built into the cpu */
22 #define ICTRL_BASE (IO_CPU_VIRT + 0x100)
27 .macro get_irqnr_preamble, base, tmp
28 movw \base, #(ICTRL_BASE & 0x0000ffff)
29 movt \base, #((ICTRL_BASE & 0xffff0000) >> 16)
32 .macro arch_ret_to_user, tmp1, tmp2