9
0
Fork 0
barebox/arch/arm/cpu
Sascha Hauer 352ddc86ae ARM: uncompress.c: copy executable to SDRAM if necessary
We used to relocate the executable to the current address. This does
not work when the executable runs from a readonly location like for
example NOR Flash. Test if we run from inside the available memory and
if we do, relocate to the current address as before. Otherwise copy
the executable to the start of memory and relocate to that address.
While at it add some comments to the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:35 +02:00
..
Kconfig arm: mvebu: add Feroceon CPU type 2013-05-17 07:40:13 +02:00
Makefile ARM: Pass armv7-a AFLAGS to cache-v7 2014-01-29 10:30:51 +01:00
cache-armv4.S ARM: Support multiple ARM architectures 2012-10-13 11:19:13 +02:00
cache-armv5.S ARM: Support multiple ARM architectures 2012-10-13 11:19:13 +02:00
cache-armv6.S ARM: Support multiple ARM architectures 2012-10-13 11:19:13 +02:00
cache-armv7.S ARM v7: added v7_mmu_cache_invalidate() 2013-05-23 09:29:47 +02:00
cache-l2x0.c arm: cache-l2x0 update sync define with Linux 3.5 2013-02-11 21:08:24 +01:00
cache.c ARM: Do not use BUG() in pbl code 2014-01-29 10:30:56 +01:00
common.c ARM: mode cpu_architecture() to common.c 2014-01-29 10:31:02 +01:00
cpu.c misc: upper-case some abbreviations 2014-06-02 09:07:12 +02:00
cpuinfo.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
dtb.c of: Drop devicetree merge support 2014-05-22 08:09:13 +02:00
exceptions.S ARN: fixup vector addresses for relocatable binaries 2013-03-07 12:38:01 +01:00
interrupts.c ARM: add rename PSR bits to match linux names 2012-10-15 09:18:34 +02:00
lowlevel.S bugfix: don't rely on lr in arm_cpu_lowlevel_init 2014-02-27 10:40:32 +01:00
mmu-early.c ARM: Factor out early mmu code 2013-02-04 15:52:41 +01:00
mmu-early.h ARM: Factor out early mmu code 2013-02-04 15:52:41 +01:00
mmu.c ARM: MMU: Fix memory reaching to the end of address space 2014-03-18 17:26:23 +01:00
mmu.h arm: move outercase to cpu.c as some SoC as the ux500 always need to flush the l2x0 2013-02-11 21:08:24 +01:00
mmuinfo.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
setupc.S ARM: uncompress.c: copy executable to SDRAM if necessary 2014-06-13 06:22:35 +02:00
start-pbl.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
start.c ARM: change signature of barebox_arm_entry 2014-05-05 15:09:09 +02:00
uncompress.c ARM: uncompress.c: copy executable to SDRAM if necessary 2014-06-13 06:22:35 +02:00