From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize
Date: Fri, 3 Jun 2011 10:11:37 +0200 [thread overview]
Message-ID: <1307088697-12159-3-git-send-email-hs@denx.de> (raw)
In-Reply-To: <1307088697-12159-1-git-send-email-hs@denx.de>
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Albert Aribaud <albert.u.boot@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
next prev parent reply other threads:[~2011-06-03 8:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 8:11 [U-Boot] [PATCH 0/2] arm: cleanup board code Heiko Schocher
2011-06-03 8:11 ` [U-Boot] [PATCH 1/2] arm, lib/board.c: Coding Style cleanup Heiko Schocher
2011-06-06 11:09 ` Detlev Zundel
2011-07-14 16:21 ` Albert ARIBAUD
2011-07-15 0:17 ` 馬克泡
2011-07-15 6:57 ` Heiko Schocher
2011-07-15 7:03 ` [U-Boot] [PATCH v2 01/02] cosmetic: arm: libboard.c: " Heiko Schocher
2011-07-15 7:22 ` Wolfgang Denk
2011-07-15 7:43 ` Heiko Schocher
2011-07-16 5:36 ` [U-Boot] [PATCH v3 01/02] cosmetic: arm: lib/board.c: " Heiko Schocher
2011-07-27 21:40 ` [U-Boot] [PATCH 1/2] arm, " Wolfgang Denk
2011-08-04 11:40 ` Albert ARIBAUD
2011-06-03 8:11 ` Heiko Schocher [this message]
2011-08-05 6:09 ` [U-Boot] [PATCH 2/2] arm, lib/board.c: use gd->ram_size instead of bd->bi_memsize Heiko Schocher
2011-08-12 17:56 ` Albert ARIBAUD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307088697-12159-3-git-send-email-hs@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox