From: York Sun Date: Wed, 30 Apr 2014 18:01:01 -0700 Subject: [U-Boot] [Patch v3 2/2] common/board_f: Fix size variable In-Reply-To: <1398906061-7119-1-git-send-email-yorksun@freescale.com> References: <1398906061-7119-1-git-send-email-yorksun@freescale.com> Message-ID: <1398906061-7119-2-git-send-email-yorksun@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Change log v3: no change v2: no change common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 0823bed..6e33e63 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; -- 1.7.9.5