sched/init: Move binfmt_initialize before hardware initialization

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-12 04:10:24 +08:00 committed by Gustavo Henrique Nihei
parent 2ce62bb583
commit ab872b0199

View File

@ -668,6 +668,12 @@ void nx_start(void)
net_initialize();
#endif
#ifndef CONFIG_BINFMT_DISABLE
/* Initialize the binfmt system */
binfmt_initialize();
#endif
/* Initialize Hardware Facilities *****************************************/
/* The processor specific details of running the operating system
@ -693,12 +699,6 @@ void nx_start(void)
/* Setup for Multi-Tasking ************************************************/
#ifndef CONFIG_BINFMT_DISABLE
/* Initialize the binfmt system */
binfmt_initialize();
#endif
/* Announce that the CPU0 IDLE task has started */
sched_note_start(&g_idletcb[0].cmn);