summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2012-05-17 17:49:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-17 20:33:39 +0200
commit1b1c049175c468164e8edca49c341927f54161fa (patch)
tree500fe4e4d2c7a0f2c8c502ba82e785b56ee58c02 /arch
parent61cce55e649b31c386c461ebf4301dfd2f2f8ea8 (diff)
downloadbarebox-1b1c049175c468164e8edca49c341927f54161fa.tar.gz
barebox-1b1c049175c468164e8edca49c341927f54161fa.tar.xz
Set _text_base to the firmware relocation address
_text_base assignment has been removed earlier from lib/board.c for the mpc5xxx. For the 85xx, _text_base is set to where the firmware relocates in memory as passed by the function input variable. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc/lib/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c
index a840c75204..6b6268f679 100644
--- a/arch/ppc/lib/board.c
+++ b/arch/ppc/lib/board.c
@@ -46,6 +46,10 @@ void board_init_r (ulong end_of_ram)
asm ("sync ; isync");
+#ifdef CONFIG_MPC85xx
+ _text_base = end_of_ram;
+#endif
+
/*
* FIXME: 128k stack size. Is this enough? should
* it be configurable?