summaryrefslogtreecommitdiff
path: root/common/memsize.c
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2018-06-20 15:06:20 +0800
committerTom Rini <trini@konsulko.com>2018-07-10 16:55:59 -0400
commit67a2616af18bbb38905b90ed1c6b66659671e1da (patch)
tree2ad9c7398b3ad9d7a8499754bfcbb98e2415d69e /common/memsize.c
parent0fd2290cfc3b5c907783772ded82a8dfad4eb0e8 (diff)
downloadu-boot-67a2616af18bbb38905b90ed1c6b66659671e1da.tar.gz
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 <tien.fong.chee@intel.com>
Diffstat (limited to 'common/memsize.c')
-rw-r--r--common/memsize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/memsize.c b/common/memsize.c
index 5670e95137..13b0047786 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;