summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-10 18:00:18 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:11 +0100
commit768e0f52f2d1a9d19842c8d1ded22a96b080a266 (patch)
tree6a939287e24f31c79705862c9329366d88448faf
parent6cba6b9209723bde06251bd996fda4ffce705d3f (diff)
downloadblackbird-obmc-uboot-768e0f52f2d1a9d19842c8d1ded22a96b080a266.tar.gz
blackbird-obmc-uboot-768e0f52f2d1a9d19842c8d1ded22a96b080a266.zip
Move early malloc() to before arch_cpu_init()
For some CPUs, having malloc() available very early is useful. There is no reason to delay this since early malloc is allocated before board_init_f() is called. Move early malloc() init nearer to the start of the init sequence. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/board_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 23d8f6461a..f81f70d442 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -812,6 +812,7 @@ static init_fnc_t init_sequence_f[] = {
setup_mon_len,
setup_fdt,
trace_early_init,
+ initf_malloc,
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
/* TODO: can this go into arch_cpu_init()? */
probecpu,
@@ -826,7 +827,6 @@ static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_OF_CONTROL
fdtdec_check_fdt,
#endif
- initf_malloc,
initf_dm,
#if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f,
OpenPOWER on IntegriCloud