[U-Boot] [PATCH 3/4] fix memory corruption on versatile

Marek Vasut marex at denx.de
Mon Dec 24 02:27:53 CET 2012


Dear Pavel Herrmann,

> ARM board.c doesnt respect CONFIG_SYS_GBL_DATA_OFFSET, nor do all boards
> set it, so reorganize the memory a bit to avoid overlaps.
> 
> Signed-off-by: Pavel Herrmann <morpheus.ibis at gmail.com>

Ccing Albert

> ---
>  include/configs/versatile.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/versatile.h b/include/configs/versatile.h
> index c9aed72..27ffffe 100644
> --- a/include/configs/versatile.h
> +++ b/include/configs/versatile.h
> @@ -35,7 +35,7 @@
>  #define CONFIG_DM_BLOCK
>  #define CONFIG_SYS_EARLY_MALLOC
>  #define CONFIG_SYS_EARLY_HEAP_ADDR	(CONFIG_SYS_INIT_RAM_ADDR + \
> -						CONFIG_SYS_GBL_DATA_OFFSET - \
> +						CONFIG_SYS_INIT_RAM_SIZE - \
>  						CONFIG_SYS_EARLY_HEAP_SIZE - 64)
>  #define CONFIG_SYS_EARLY_HEAP_SIZE	1024

Best regards,
Marek Vasut


More information about the U-Boot mailing list