diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-10 15:33:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-28 09:55:02 +0100 |
commit | 2c2d00a2816099ef90c149562b9f939048742c1f (patch) | |
tree | 38dd508bb09695330bfce64054f00f73be98b0e1 /arch/arm/include/asm/barebox-arm.h | |
parent | 5c50423b7011346c4a38309d82394e6a2d3cdf29 (diff) | |
download | barebox-2c2d00a2816099ef90c149562b9f939048742c1f.tar.gz barebox-2c2d00a2816099ef90c149562b9f939048742c1f.tar.xz |
ARM: move exception vectors away from start of binary
Traditionally U-Boot and barebox have the exception vectors at
the start of the binary. There is no real reason in doing so,
because in the majority of cases this data will not be at 0x0
where it could be used as vectors directly anyway.
This patch puts the vectors into a separate linker section and
defines an head function which is placed at the start of the
image instead. Putting this in a separate function also has
the advantage that it can be placed at the start of images
which require an additional header like several Freescale i.MX
images. As the head function contains the barebox arm magic
those images can now also be detected as barebox images.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index 7bb1af1606..333978241c 100644 --- a/arch/arm/include/asm/barebox-arm.h +++ b/arch/arm/include/asm/barebox-arm.h @@ -36,6 +36,8 @@ int cleanup_before_linux(void); int board_init(void); int dram_init (void); +extern char __exceptions_start[], __exceptions_stop[]; + void board_init_lowlevel(void); void board_init_lowlevel_return(void); void arch_init_lowlevel(void); |