diff options
Diffstat (limited to 'arch/arm/mach-stmp37xx/include/mach/entry-macro.S')
-rw-r--r-- | arch/arm/mach-stmp37xx/include/mach/entry-macro.S | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/mach-stmp37xx/include/mach/entry-macro.S b/arch/arm/mach-stmp37xx/include/mach/entry-macro.S new file mode 100644 index 000000000000..fed2787b6c34 --- /dev/null +++ b/arch/arm/mach-stmp37xx/include/mach/entry-macro.S | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * Low-level IRQ helper macros for Freescale STMP37XX | ||
3 | * | ||
4 | * Embedded Alley Solutions, Inc <source@embeddedalley.com> | ||
5 | * | ||
6 | * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. | ||
7 | * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. | ||
8 | */ | ||
9 | |||
10 | /* | ||
11 | * The code contained herein is licensed under the GNU General Public | ||
12 | * License. You may obtain a copy of the GNU General Public License | ||
13 | * Version 2 or later at the following locations: | ||
14 | * | ||
15 | * http://www.opensource.org/licenses/gpl-license.html | ||
16 | * http://www.gnu.org/copyleft/gpl.html | ||
17 | */ | ||
18 | |||
19 | .macro disable_fiq | ||
20 | .endm | ||
21 | |||
22 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
23 | |||
24 | mov \base, #0xf0000000 @ vm address of IRQ controller | ||
25 | ldr \irqnr, [\base, #0x30] @ HW_ICOLL_STAT | ||
26 | cmp \irqnr, #0x3f | ||
27 | movne \irqstat, #0 @ Ack this IRQ | ||
28 | strne \irqstat, [\base, #0x00]@ HW_ICOLL_VECTOR | ||
29 | moveqs \irqnr, #0 @ Zero flag set for no IRQ | ||
30 | |||
31 | .endm | ||
32 | |||
33 | .macro get_irqnr_preamble, base, tmp | ||
34 | .endm | ||
35 | |||
36 | .macro arch_ret_to_user, tmp1, tmp2 | ||
37 | .endm | ||