mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-09 02:37:31 +01:00
arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
Signed-off-by: Heiko Schocher <hs@denx.de> cc: Albert Aribaud <albert.u.boot@aribaud.net>
This commit is contained in:
parent
8b5a4bcaa0
commit
b2b8f98f88
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue