diff options
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c index bdab38e89d..6b2e277bd7 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -767,6 +767,17 @@ static int mark_bootstage(void) return 0; } +static int initf_malloc(void) +{ +#ifdef CONFIG_SYS_MALLOC_F_LEN + assert(gd->malloc_base); /* Set up by crt0.S */ + gd->malloc_limit = gd->malloc_base + CONFIG_SYS_MALLOC_F_LEN; + gd->malloc_ptr = 0; +#endif + + return 0; +} + static init_fnc_t init_sequence_f[] = { #ifdef CONFIG_SANDBOX setup_ram_buf, @@ -824,6 +835,7 @@ static init_fnc_t init_sequence_f[] = { sdram_adjust_866, init_timebase, #endif + initf_malloc, init_baud_rate, /* initialze baudrate settings */ serial_init, /* serial communications setup */ console_init_f, /* stage 1 init of console */ |