9
0
Fork 0
barebox/arch/openrisc/cpu
Franck Jullien 7911f5efdd 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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-22 08:07:21 +02:00
..
Makefile Add OpenRISC arch 2012-01-02 12:50:56 +01:00
barebox.lds.S defaultenv: Allow multiple defaultenvironment overlays 2014-02-28 08:14:14 +01:00
cache.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
cpu.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
exceptions.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
start.S openrisc: fix relocation code 2014-05-22 08:07:21 +02:00