mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-21 04:36:18 -04:00
x86: Rearrange function calls in board_init_f
This commit is contained in:
parent
71a5404974
commit
a3824142e7
@ -235,6 +235,14 @@ static int do_elf_reloc_fixups(void)
|
|||||||
*/
|
*/
|
||||||
void board_init_f(ulong boot_flags)
|
void board_init_f(ulong boot_flags)
|
||||||
{
|
{
|
||||||
|
/* First stage CPU initialization */
|
||||||
|
if (cpu_init_f() != 0)
|
||||||
|
hang();
|
||||||
|
|
||||||
|
/* First stage Board initialization */
|
||||||
|
if (board_early_init_f() != 0)
|
||||||
|
hang();
|
||||||
|
|
||||||
if (env_init() != 0)
|
if (env_init() != 0)
|
||||||
hang();
|
hang();
|
||||||
|
|
||||||
@ -253,14 +261,6 @@ void board_init_f(ulong boot_flags)
|
|||||||
if (calculate_relocation_address() != 0)
|
if (calculate_relocation_address() != 0)
|
||||||
hang();
|
hang();
|
||||||
|
|
||||||
/* First stage CPU initialization */
|
|
||||||
if (cpu_init_f() != 0)
|
|
||||||
hang();
|
|
||||||
|
|
||||||
/* First stage Board initialization */
|
|
||||||
if (board_early_init_f() != 0)
|
|
||||||
hang();
|
|
||||||
|
|
||||||
/* Copy U-Boot into RAM */
|
/* Copy U-Boot into RAM */
|
||||||
if (copy_uboot_to_ram() != 0)
|
if (copy_uboot_to_ram() != 0)
|
||||||
hang();
|
hang();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user