projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
m53menlo: Switch to deriving CONFIG_SYS_NAND_PAGE_COUNT
[platform/kernel/u-boot.git]
/
common
/
memsize.c
diff --git
a/common/memsize.c
b/common/memsize.c
index
5670e95
..
d5d13d5
100644
(file)
--- a/
common/memsize.c
+++ b/
common/memsize.c
@@
-5,6
+5,8
@@
*/
#include <common.h>
+#include <init.h>
+#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-26,7
+28,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;