mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -812,6 +812,7 @@ static init_fnc_t init_sequence_f[] = {
|
|||||||
setup_mon_len,
|
setup_mon_len,
|
||||||
setup_fdt,
|
setup_fdt,
|
||||||
trace_early_init,
|
trace_early_init,
|
||||||
|
initf_malloc,
|
||||||
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
|
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
|
||||||
/* TODO: can this go into arch_cpu_init()? */
|
/* TODO: can this go into arch_cpu_init()? */
|
||||||
probecpu,
|
probecpu,
|
||||||
@ -826,7 +827,6 @@ static init_fnc_t init_sequence_f[] = {
|
|||||||
#ifdef CONFIG_OF_CONTROL
|
#ifdef CONFIG_OF_CONTROL
|
||||||
fdtdec_check_fdt,
|
fdtdec_check_fdt,
|
||||||
#endif
|
#endif
|
||||||
initf_malloc,
|
|
||||||
initf_dm,
|
initf_dm,
|
||||||
#if defined(CONFIG_BOARD_EARLY_INIT_F)
|
#if defined(CONFIG_BOARD_EARLY_INIT_F)
|
||||||
board_early_init_f,
|
board_early_init_f,
|
||||||
|
Reference in New Issue
Block a user