projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd2290
)
common/memsize.c: Increase save array for supporting memory size > 4GB
author
Tien Fong Chee
<tien.fong.chee@intel.com>
Wed, 20 Jun 2018 07:06:20 +0000
(15:06 +0800)
committer
Tom Rini
<trini@konsulko.com>
Tue, 10 Jul 2018 20:55:59 +0000
(16:55 -0400)
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>
common/memsize.c
patch
|
blob
|
history
diff --git
a/common/memsize.c
b/common/memsize.c
index
5670e95
..
13b0047
100644
(file)
--- 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[
3
1];
+ long save[
BITS_PER_LONG -
1];
long save_base;
long cnt;
long val;