X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_nios2%2Fboard.c;h=c6b36f4a2ef1e35903c535abfab261d743627d1c;hb=67c3d9fb36bd0e66bd5cbf2719564e01f6459433;hp=e5a8d54069e652e86d2040ee15e1f4a84c4dc0d6;hpb=d870552ee4b83842e23cbd64a3a38b277136d568;p=u-boot diff --git a/lib_nios2/board.c b/lib_nios2/board.c index e5a8d54069..c6b36f4a2e 100644 --- a/lib_nios2/board.c +++ b/lib_nios2/board.c @@ -55,19 +55,6 @@ DECLARE_GLOBAL_DATA_PTR; extern void malloc_bin_reloc (void); typedef int (init_fnc_t) (void); -/* - * The Malloc area is immediately below the monitor copy in RAM - */ -static void mem_malloc_init (void) -{ - mem_malloc_start = CONFIG_SYS_MALLOC_BASE; - mem_malloc_end = mem_malloc_start + CONFIG_SYS_MALLOC_LEN; - mem_malloc_brk = mem_malloc_start; - memset ((void *) mem_malloc_start, - 0, - mem_malloc_end - mem_malloc_start); -} - /************************************************************************ * Initialization sequence * @@ -131,7 +118,9 @@ void board_init (void) } WATCHDOG_RESET (); - mem_malloc_init(); + + /* The Malloc area is immediately below the monitor copy in RAM */ + mem_malloc_init(CONFIG_SYS_MALLOC_BASE, CONFIG_SYS_MALLOC_LEN); malloc_bin_reloc(); WATCHDOG_RESET ();