Skip to content
Snippets Groups Projects
Commit bb60db63 authored by Alex Hornung's avatar Alex Hornung Committed by Thomas Chou
Browse files

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: default avatarAlex Hornung <alex@alexhornung.com>
Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
parent 7bd7b315
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment