summaryrefslogtreecommitdiff
path: root/lib_nios/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_nios/board.c')
-rw-r--r--lib_nios/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib_nios/board.c b/lib_nios/board.c
index 63e79ae..9d8eea7 100644
--- a/lib_nios/board.c
+++ b/lib_nios/board.c
@@ -143,11 +143,13 @@ void board_init (void)
}
WATCHDOG_RESET ();
+ mem_malloc_init();
+ malloc_bin_reloc();
+
+ WATCHDOG_RESET ();
bd->bi_flashsize = flash_init();
WATCHDOG_RESET ();
- mem_malloc_init();
- malloc_bin_reloc();
env_relocate();
bd->bi_ip_addr = getenv_IPaddr ("ipaddr");