From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: Add relocatable binary support
Date: Mon, 4 Mar 2013 21:03:03 +0100 [thread overview]
Message-ID: <1362427389-2144-1-git-send-email-s.hauer@pengutronix.de> (raw)
The following adds relocatable binary support for ARM. This can
be useful when a suitable memory location for the barebox binary
is not known at compile time, for example when compiling for multiple
SoCs.
In most cases enabling this feature will only result in the visible
effect that the binary gets bigger, so this feature is fully optional.
The relocatable support can be enabled for the PBL and the real binary
independently for greater flexibility and better debugability.
This series has been tested on various boards and I hope I have
covered all combinations of PBL enabled/disabled, PBL relocation
enabled/disabled, relocation enabled/disabled and MMU enabled/disabled.
Sascha
----------------------------------------------------------------
Sascha Hauer (6):
ARM: make cpu architecture detection available as static inline function
ARM: add early mmu cache flush function and use it in setup_c
ARM: provide accessor functions for linker variables
ARM boards: Use accessor functions to access linker variables
ARN: fixup vector addresses for relocatable binaries
ARM: Add relocatable binary support
arch/arm/Kconfig | 9 ++++
arch/arm/Makefile | 4 ++
arch/arm/boards/friendlyarm-tiny210/lowlevel.c | 3 +-
arch/arm/cpu/Makefile | 3 ++
arch/arm/cpu/cache.c | 33 +++++++++++++
arch/arm/cpu/common.c | 68 ++++++++++++++++++++++++++
arch/arm/cpu/cpu.c | 34 +------------
arch/arm/cpu/exceptions.S | 55 ++++++++++++++++++---
arch/arm/cpu/mmu.c | 2 +
arch/arm/cpu/setupc.S | 62 +++++++++++++++++++++++
arch/arm/cpu/start-pbl.c | 18 +++++--
arch/arm/cpu/start.c | 5 ++
arch/arm/include/asm/barebox-arm.h | 34 +++++++++++++
arch/arm/include/asm/cache.h | 8 +++
arch/arm/include/asm/mmu.h | 1 -
arch/arm/include/asm/sections.h | 33 +++++++++++++
arch/arm/include/asm/system_info.h | 43 ++++++++++++++++
arch/arm/lib/barebox.lds.S | 17 +++++++
arch/arm/lib/runtime-offset.S | 32 ++++++++++++
arch/arm/mach-imx/external-nand-boot.c | 27 +++++-----
arch/arm/pbl/Makefile | 3 ++
arch/arm/pbl/zbarebox.lds.S | 16 ++++++
common/Kconfig | 2 +-
drivers/mtd/nand/nand_s3c24xx.c | 2 +-
pbl/Kconfig | 10 ++++
25 files changed, 466 insertions(+), 58 deletions(-)
create mode 100644 arch/arm/cpu/common.c
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-03-04 20:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 20:03 Sascha Hauer [this message]
2013-03-04 20:03 ` [PATCH 1/6] ARM: make cpu architecture detection available as static inline function Sascha Hauer
2013-03-04 20:46 ` Alexander Aring
2013-03-05 10:34 ` Sascha Hauer
2013-03-04 20:03 ` [PATCH 2/6] ARM: add early mmu cache flush function and use it in setup_c Sascha Hauer
2013-03-04 20:03 ` [PATCH 3/6] ARM: provide accessor functions for linker variables Sascha Hauer
2013-03-04 20:03 ` [PATCH 4/6] ARM boards: Use accessor functions to access " Sascha Hauer
2013-03-04 20:03 ` [PATCH 5/6] ARN: fixup vector addresses for relocatable binaries Sascha Hauer
2013-03-04 20:03 ` [PATCH 6/6] ARM: Add relocatable binary support Sascha Hauer
2013-03-04 20:10 ` Alexander Shiyan
2013-03-04 20:19 ` Sascha Hauer
2013-03-05 4:32 ` Re[2]: " Alexander Shiyan
2013-03-05 7:25 ` Sascha Hauer
2013-03-04 20:53 ` Alexander Aring
2013-03-05 10:46 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362427389-2144-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox