From: York Sun Date: Sat, 3 May 2014 00:28:05 +0000 (-0700) Subject: common/board_f: Fix size variable X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=fa39ffe5d61bd7f34b2ff579f5f6bb8f92a6b9b1;p=u-boot.git common/board_f: Fix size variable DRAM size should use 64-bit variable when the size could be more than 4GB. Caught and verified on P4080DS with 4GB DDR. Signed-off-by: York Sun Acked-by: Simon Glass --- diff --git a/common/board_f.c b/common/board_f.c index b6be386a7f..4ea4cb21be 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -194,7 +194,7 @@ static int init_func_ram(void) static int show_dram_config(void) { - ulong size; + unsigned long long size; #ifdef CONFIG_NR_DRAM_BANKS int i;