• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* include/asm-arm/arch-goldfish/entry-macro.S
2**
3** Copyright (C) 2007 Google, Inc.
4**
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.
8**
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.
13**
14*/
15
16#include <mach/hardware.h>
17#include <mach/irqs.h>
18
19	.macro  disable_fiq
20	.endm
21
22	.macro  get_irqnr_preamble, base, tmp
23	.endm
24
25	.macro  arch_ret_to_user, tmp1, tmp2
26	.endm
27
28	.macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
29	ldr     \base, =IO_ADDRESS(GOLDFISH_INTERRUPT_BASE)
30	ldr     \irqnr, [\base, #GOLDFISH_INTERRUPT_NUMBER]
31	ldr     \irqstat, [\base, #GOLDFISH_INTERRUPT_STATUS]
32	teq     \irqstat, #0
33	/* EQ will be set if no irqs pending */
34	.endm
35