9
0
Fork 0
barebox/arch
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
..
arm ARM Samsung: fix booting from NAND with pbl 2014-05-19 09:37:27 +02:00
blackfin bootm: introduce bootm_load_os helper 2014-01-10 11:53:18 +01:00
mips Merge branch 'for-next/mips' 2014-05-05 11:06:17 +02:00
nios2 common: Allow for I/O mapped I/O 2014-04-08 08:17:55 +02:00
openrisc openrisc: fix relocation code 2014-05-22 08:07:21 +02:00
ppc x86: ns16550: Rework driver to allow for x86 I/O space 2014-04-09 19:31:42 +02:00
sandbox common: Allow for I/O mapped I/O 2014-04-08 08:17:55 +02:00
x86 x86: ns16550: Rework driver to allow for x86 I/O space 2014-04-09 19:31:42 +02:00
architecture.dox MIPS: add documentation 2011-08-05 18:20:17 +02:00