This is an automated email from the ASF dual-hosted git repository. gustavonihei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ab872b01999e7d13ad1aeaa95c7d2ebf7118d95d Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Sat Mar 12 04:10:24 2022 +0800 sched/init: Move binfmt_initialize before hardware initialization Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- sched/init/nx_start.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c index aeafd5f..6fc5a6b 100644 --- a/sched/init/nx_start.c +++ b/sched/init/nx_start.c @@ -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);