From f41b144c11341b571eab7dcef6c4b8e03c92d2b2 Mon Sep 17 00:00:00 2001 From: gnusercn Date: Wed, 8 Oct 2008 18:58:58 +0200 Subject: Fix bug: in arch-arm, env_get_char dose not work fine due to the arm implementation which supposed that U-Boot is in RAM when we jump to start_armboot Signed-off-by: gnusercn Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- lib_arm/board.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib_arm') diff --git a/lib_arm/board.c b/lib_arm/board.c index 47e834c9d0..f02fdc87ca 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -290,6 +290,8 @@ void start_armboot (void) gd->bd = (bd_t*)((char*)gd - sizeof(bd_t)); memset (gd->bd, 0, sizeof (bd_t)); + gd->flags |= GD_FLG_RELOC; + monitor_flash_len = _bss_start - _armboot_start; for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { -- cgit v1.2.1