diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-05 03:51:38 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-14 14:21:47 -0500 |
commit | 7627dc802a98aebebc6a34e5b6558ea4717c968c (patch) | |
tree | f1308e351f6f003a52b5939b7eece82f14a12c62 /arch/arm/include | |
parent | bef8f9ee32511a28f1c9a7d3b8c51cdac030b564 (diff) |
ARM: GIC: private a standard get_irqnr_preamble assembler macro
Provide a standard get_irqnr_preamble assembler macro for platforms
to use, which retrieves the base address of the GIC CPU interface
from gic_cpu_base_addr. Allow platforms to override this by defining
HAVE_GET_IRQNR_PREAMBLE.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/hardware/entry-macro-gic.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/entry-macro-gic.S b/arch/arm/include/asm/hardware/entry-macro-gic.S index 05587f125a1..c115b82fe80 100644 --- a/arch/arm/include/asm/hardware/entry-macro-gic.S +++ b/arch/arm/include/asm/hardware/entry-macro-gic.S | |||
@@ -10,6 +10,13 @@ | |||
10 | 10 | ||
11 | #include <asm/hardware/gic.h> | 11 | #include <asm/hardware/gic.h> |
12 | 12 | ||
13 | #ifndef HAVE_GET_IRQNR_PREAMBLE | ||
14 | .macro get_irqnr_preamble, base, tmp | ||
15 | ldr \base, =gic_cpu_base_addr | ||
16 | ldr \base, [\base] | ||
17 | .endm | ||
18 | #endif | ||
19 | |||
13 | /* | 20 | /* |
14 | * The interrupt numbering scheme is defined in the | 21 | * The interrupt numbering scheme is defined in the |
15 | * interrupt controller spec. To wit: | 22 | * interrupt controller spec. To wit: |