From: Tien Fong Chee Date: Wed, 20 Jun 2018 07:06:20 +0000 (+0800) Subject: common/memsize.c: Increase save array for supporting memory size > 4GB X-Git-Tag: v2018.09-rc1~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a2616af18bbb38905b90ed1c6b66659671e1da;p=pandora-u-boot.git common/memsize.c: Increase save array for supporting memory size > 4GB In ARM 64-bits, memory size can be supported is more than 4GB, hence increasing save array is needed to cope with testing larger memory. Signed-off-by: Tien Fong Chee --- diff --git a/common/memsize.c b/common/memsize.c index 5670e951371..13b00477866 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -26,7 +26,7 @@ DECLARE_GLOBAL_DATA_PTR; long get_ram_size(long *base, long maxsize) { volatile long *addr; - long save[31]; + long save[BITS_PER_LONG - 1]; long save_base; long cnt; long val;