public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: ratbert.chuang at gmail.com <ratbert.chuang@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] get_ram_size: memory content of base address was not restored
Date: Tue, 25 May 2010 15:04:53 +0800	[thread overview]
Message-ID: <1274771093-29677-1-git-send-email-ratbert.chuang@gmail.com> (raw)

From: Po-Yu Chuang <ratbert@faraday-tech.com>


Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
---
 common/memsize.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/memsize.c b/common/memsize.c
index 6c275c9..99469ab 100644
--- a/common/memsize.c
+++ b/common/memsize.c
@@ -74,6 +74,7 @@ long get_ram_size(volatile long *base, long maxsize)
                return (0);
        }

+       *addr = save[i];
        for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
                addr = base + cnt;      /* pointer arith! */
                val = *addr;
--
1.6.0.4

             reply	other threads:[~2010-05-25  7:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25  7:04 ratbert.chuang at gmail.com [this message]
2010-08-07 19:50 ` [U-Boot] [PATCH] get_ram_size: memory content of base address was not restored Wolfgang Denk
2010-08-09  2:25   ` Po-Yu Chuang

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=1274771093-29677-1-git-send-email-ratbert.chuang@gmail.com \
    --to=ratbert.chuang@gmail.com \
    --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