public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] get_ram_size: memory content of base address was not restored
@ 2010-05-25  7:04 ratbert.chuang at gmail.com
  2010-08-07 19:50 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: ratbert.chuang at gmail.com @ 2010-05-25  7:04 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-09  2:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25  7:04 [U-Boot] [PATCH] get_ram_size: memory content of base address was not restored ratbert.chuang at gmail.com
2010-08-07 19:50 ` Wolfgang Denk
2010-08-09  2:25   ` Po-Yu Chuang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox