[PATCH 7/9] ARM: move exception vectors away from start of binary
Sascha Hauer
s.hauer at pengutronix.de
Wed Dec 21 05:09:15 EST 2011
On Tue, Dec 20, 2011 at 03:07:45PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:52 Sat 17 Dec , Sascha Hauer wrote:
> > 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 aas barebox images.
> >
> > Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> > ---
> > arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c | 3 ++-
> > arch/arm/boards/eukrea_cpuimx35/flash_header.c | 3 ++-
> > arch/arm/boards/eukrea_cpuimx51/flash_header.c | 3 ++-
> > arch/arm/boards/freescale-mx25-3-stack/3stack.c | 3 ++-
> > .../boards/freescale-mx35-3-stack/flash_header.c | 3 ++-
> > arch/arm/boards/freescale-mx51-pdk/flash_header.c | 3 ++-
> > arch/arm/boards/freescale-mx53-loco/flash_header.c | 3 ++-
> > arch/arm/boards/freescale-mx53-smd/flash_header.c | 3 ++-
> > arch/arm/cpu/mmu.c | 4 ++--
> > arch/arm/cpu/start.c | 14 +++++++-------
> > arch/arm/include/asm/barebox-arm-head.h | 17 +++++++++++++++++
> > arch/arm/include/asm/barebox-arm.h | 2 ++
> > arch/arm/lib/barebox.lds.S | 5 ++++-
> > 13 files changed, 48 insertions(+), 18 deletions(-)
> > create mode 100644 arch/arm/include/asm/barebox-arm-head.h
> you need to update the rm9200 too
Only the boards which define some non standard entry header need an
update. The rm9200 does not seem to be one of these boards, or am
I missing something?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list