[U-Boot] [PATCH] fix bug in get_ram_size()

From: Po-Yu Chuang ratbert@faraday-tech.com
memory content of base address was not restored
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;

Dear Wolfgang,
2010/6/28 ratbert.chuang@gmail.com:
From: Po-Yu Chuang ratbert@faraday-tech.com
memory content of base address was not restored
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;
Did you get this patch? I think it is quite straightforward. If you have any concern, please let me know.
regards, Po-Yu Chuang

Dear Po-Yu Chuang,
In message AANLkTinqqCaZB1562EAgrLOqbLeWM0uEJIRUySoNKccC@mail.gmail.com you wrote:
Did you get this patch?
Yes, I did.
I think it is quite straightforward.
Quite straightforward, and incorrect.
Best regards,
Wolfgang Denk
participants (3)
-
Po-Yu Chuang
-
ratbert.chuang@gmail.com
-
Wolfgang Denk