Skip to content
Snippets Groups Projects
Commit b2b8f98f authored by Heiko Schocher's avatar Heiko Schocher Committed by Albert ARIBAUD
Browse files

arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize


Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
cc: Albert Aribaud <albert.u.boot@aribaud.net>
parent 8b5a4bca
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment