summaryrefslogtreecommitdiff
path: root/arch/nios2/lib/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/lib/board.c')
-rw-r--r--arch/nios2/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/lib/board.c b/arch/nios2/lib/board.c
index f83e691a34..f6c6bc166b 100644
--- a/arch/nios2/lib/board.c
+++ b/arch/nios2/lib/board.c
@@ -95,7 +95,7 @@ void board_init (void)
/* compiler optimization barrier needed for GCC >= 3.4 */
__asm__ __volatile__("": : :"memory");
- memset( gd, 0, CONFIG_SYS_GBL_DATA_SIZE );
+ memset( gd, 0, GENERATED_GBL_DATA_SIZE );
gd->bd = (bd_t *)(gd+1); /* At end of global data */
gd->baudrate = CONFIG_BAUDRATE;