From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 24 Feb 2012 11:03:18 +0800 Subject: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info In-Reply-To: <1329781545-18177-1-git-send-email-alex@alexhornung.com> References: <1329781545-18177-1-git-send-email-alex@alexhornung.com> Message-ID: <4F46FDF6.5030003@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 to overlap of the malloc > region and the bd_info structure. > > Signed-off-by: Alex Hornung > --- > include/configs/nios2-generic.h | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > Dear Alex, Applied. Thanks. Best regards, Thomas