[PATCH V5 7/9] Set _text_base to the firmware relocation address
Renaud Barbier
renaud.barbier at ge.com
Thu May 17 12:49:49 EDT 2012
_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 at ge.com>
---
arch/ppc/lib/board.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c
index a840c75..6b6268f 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?
--
1.7.1
More information about the barebox
mailing list