]> git.sur5r.net Git - u-boot/commit
nios2 - adjust gbl data off to account for bd_info
authorAlex Hornung <alex@alexhornung.com>
Mon, 20 Feb 2012 23:45:45 +0000 (23:45 +0000)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 24 Feb 2012 02:18:34 +0000 (10:18 +0800)
commitbb60db634c26d609b289e114f44cc2c94ee64c4f
tree34d9a7f605d4b002d7e7e4a400bda03be803bfb9
parent7bd7b31574518bf9c7b3c83ef2831e27abb6b14e
nios2 - adjust gbl data off to account for bd_info

 * 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 <alex@alexhornung.com>
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
include/configs/nios2-generic.h