From: gnusercn Date: Wed, 8 Oct 2008 16:58:58 +0000 (+0200) Subject: Fix bug: in arch-arm, env_get_char dose not work fine X-Git-Tag: v2008.10-rc3~24^2^2^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f41b144c11341b571eab7dcef6c4b8e03c92d2b2;p=u-boot 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 --- 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) {