We will remove the TEXT_BASE def in board config.mk.
And compute the text base in board config header file.

Signed-off-by: Thomas Chou <tho...@wytron.com.tw>
---
 cpu/nios2/start.S |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cpu/nios2/start.S b/cpu/nios2/start.S
index 31cd5b0..4b4c560 100644
--- a/cpu/nios2/start.S
+++ b/cpu/nios2/start.S
@@ -26,6 +26,12 @@
 #include <timestamp.h>
 #include <version.h>
 
+#ifdef CONFIG_SYS_TEXT_BASE
+       /* text base used in link script u-boot.lds */
+       .global text_base
+       .equ text_base,CONFIG_SYS_TEXT_BASE
+#endif
+
 /*************************************************************************
  * RESTART
  ************************************************************************/
-- 
1.6.6.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to