summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/barebox-arm.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-03 21:06:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-07 12:38:01 +0100
commitb08e08506b9752d3768e42d075283f91d2ed5180 (patch)
tree8b3b741d33508cea7d6240463894b69ae9eb2c42 /arch/arm/include/asm/barebox-arm.h
parent019712525a9a47037af7c13c257d2177f080ae7e (diff)
downloadbarebox-b08e08506b9752d3768e42d075283f91d2ed5180.tar.gz
barebox-b08e08506b9752d3768e42d075283f91d2ed5180.tar.xz
ARN: fixup vector addresses for relocatable binaries
With relocatable binaries the vector addresses cannot be supplied by the linker. This adds support for fixing them up during runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include/asm/barebox-arm.h')
-rw-r--r--arch/arm/include/asm/barebox-arm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
index 9c10e366d9..11ef848773 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -42,4 +42,12 @@ uint32_t get_runtime_offset(void);
void setup_c(void);
void __noreturn barebox_arm_entry(uint32_t membase, uint32_t memsize, uint32_t boarddata);
+#if defined(CONFIG_RELOCATABLE) && defined(CONFIG_ARM_EXCEPTIONS)
+void arm_fixup_vectors(void);
+#else
+static inline void arm_fixup_vectors(void)
+{
+}
+#endif
+
#endif /* _BAREBOX_ARM_H_ */