Re: [U-Boot] [PATCH v2] memsize: Fix for bug in memory sizing code

2014-10-21 Thread Gerd Hoffmann
On Di, 2014-10-21 at 22:14 +0200, Wolfgang Denk wrote: > Dear Gerd Hoffmann, > > In message <1413910153-5907-1-git-send-email-kra...@redhat.com> you wrote: > > The original memory sizing code in get_ram_size clobbers the word > > at the base address, but forgets to restore it. > > The funny thing

Re: [U-Boot] [PATCH v2] memsize: Fix for bug in memory sizing code

2014-10-21 Thread Wolfgang Denk
Dear Gerd Hoffmann, In message <1413910153-5907-1-git-send-email-kra...@redhat.com> you wrote: > The original memory sizing code in get_ram_size clobbers the word > at the base address, but forgets to restore it. The funny thing is that it avtually works on some boards. Do you have an explanatio

[U-Boot] [PATCH v2] memsize: Fix for bug in memory sizing code

2014-10-21 Thread Gerd Hoffmann
The original memory sizing code in get_ram_size clobbers the word at the base address, but forgets to restore it. Unlike the (reverted) commit b8496cced856ff411f1eb2e4eff20f5abe7080b0 we'll go save and restore the base address value at the start and then end of the function. It needs to stay clea