Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-23 Thread Thomas Chou
On 02/21/2012 07:45 AM, Alex Hornung wrote: * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be using the space between that offset and the start of the malloc region to allocate both a gd structure and a board info structure. * This fixes a memory corruption bug due t

Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-23 Thread Mike Frysinger
On Monday 20 February 2012 18:45:45 Alex Hornung wrote: > * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be >using the space between that offset and the start of the malloc >region to allocate both a gd structure and a board info structure. > > * This fixes a memory corr

Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-23 Thread Alex Hornung
Hi Graeme, On 21/02/12 10:33, Graeme Russ wrote: > Hi Alex, > > On 02/21/2012 10:45 AM, Alex Hornung wrote: >> * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be >>using the space between that offset and the start of the malloc >>region to allocate both a gd structure and

Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-23 Thread Graeme Russ
Hi Alex, On 02/23/2012 07:13 PM, Alex Hornung wrote: > Hi Graeme, > > On 21/02/12 10:33, Graeme Russ wrote: >> Hi Alex, >> >> On 02/21/2012 10:45 AM, Alex Hornung wrote: >>> * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be >>>using the space between that offset and the star

Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-21 Thread Graeme Russ
Hi Alex, On 02/21/2012 10:45 AM, Alex Hornung wrote: > * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be >using the space between that offset and the start of the malloc >region to allocate both a gd structure and a board info structure. > > * This fixes a memory corrup

[U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-21 Thread Alex Hornung
* Adjust the GBL_DATA_OFFSET to account for the fact that we'll be using the space between that offset and the start of the malloc region to allocate both a gd structure and a board info structure. * This fixes a memory corruption bug due to overlap of the malloc region and the bd_info