u-boot-brain/arch/openrisc/cpu
Franck Jullien 9cd73bf859 openrisc: fix relocation code
The relocation code can now relocate from anywhere to
the RAM.

The old code assumed that the binary was copied to the RAM
by some PBL and then it just relocated the .text section
from the loaded address to the linked address.

Now, it first checks if vectors are somewhere else than the
linked address. If yes, there are copied to address 0 (or
to the exception vector base address if register EVBAR is
present).

Then, the .text section is relocated from its current location
to the RAM.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
2014-06-05 14:44:56 -04:00
..
cache.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cpu.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
exceptions.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
interrupts.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile openrisc: convert makefiles to Kbuild style 2013-10-31 13:26:45 -04:00
start.S openrisc: fix relocation code 2014-06-05 14:44:56 -04:00
u-boot.lds openrisc: move board linker script(s) to a common in cpu/ 2013-05-10 08:16:33 -04:00