[U-Boot] [PATCH 2/2] arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
Heiko Schocher
hs at denx.de
Fri Jun 3 10:11:37 CEST 2011
Signed-off-by: Heiko Schocher <hs at denx.de>
cc: Albert Aribaud <albert.u.boot at aribaud.net>
---
arch/arm/lib/board.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 05ee71b..0acd23b 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -641,7 +641,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
pram += (LOGBUFF_LEN + LOGBUFF_OVERHEAD) / 1024;
#endif
#endif
- sprintf((char *)memsz, "%ldk", (bd->bi_memsize / 1024) - pram);
+ sprintf((char *)memsz, "%ldk", (gd->ram_size / 1024) - pram);
setenv("mem", (char *)memsz);
}
#endif
--
1.7.4.4
More information about the U-Boot
mailing list