aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm/config.h
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-04-28 21:14:21 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-05-13 12:00:02 +0100
commitd0d7f4de85e70595b5b6a77a1f0105b930ca82bd (patch)
treec24b175e3b5dd985cea62d22684a4e2384ab00f2 /xen/include/asm-arm/config.h
parentbd74772eb65f6624437f789c1e6884e073a03fcc (diff)
downloadxen-d0d7f4de85e70595b5b6a77a1f0105b930ca82bd.tar.gz
xen-d0d7f4de85e70595b5b6a77a1f0105b930ca82bd.tar.bz2
xen-d0d7f4de85e70595b5b6a77a1f0105b930ca82bd.zip
xen/arm64: Remove hardcoded value for gic in assembly code
- arm64: use V2M_GIC_BASE_ADDRESS - only expose GIC_*_ADDRESS to assembly. The C code uses base addresses provide by the device tree Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm/config.h')
-rw-r--r--xen/include/asm-arm/config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h
index 6414c895b7..e3cfaf1cf4 100644
--- a/xen/include/asm-arm/config.h
+++ b/xen/include/asm-arm/config.h
@@ -141,12 +141,16 @@ extern unsigned long frametable_virt_end;
#define watchdog_disable() ((void)0)
#define watchdog_enable() ((void)0)
-/* Board-specific: base address of GIC + its regs */
-#define GIC_BASE_ADDRESS 0x2c000000
+#ifdef __ASSEMBLY__
+/* Board-specific: regs base address for the GIC
+ * Theses constants are only intend to be used in assembly file
+ * because the DT is not yet parsed.
+ */
#define GIC_DR_OFFSET 0x1000
#define GIC_CR_OFFSET 0x2000
#define GIC_HR_OFFSET 0x4000 /* Guess work http://lists.infradead.org/pipermail/linux-arm-kernel/2011-September/064219.html */
#define GIC_VR_OFFSET 0x6000 /* Virtual Machine CPU interface) */
+#endif /* __ASSEMBLY__ */
#endif /* __ARM_CONFIG_H__ */
/*