init: run kernel_arch_init() earlier

This was in prepare_multithreading(), which was moved
to after driver initialization and not before it.
The function now really just prepares system threads.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2018-05-23 13:30:34 -07:00 committed by Anas Nashif
commit 982d5c8f55

View file

@ -356,9 +356,6 @@ static void prepare_multithreading(struct k_thread *dummy_thread)
initialize_timeouts();
/* perform any architecture-specific initialization */
kernel_arch_init();
}
static void switch_to_main_thread(void)
@ -414,6 +411,9 @@ FUNC_NORETURN void _Cstart(void)
_IntLibInit();
/* perform any architecture-specific initialization */
kernel_arch_init();
/* perform basic hardware initialization */
_sys_device_do_config_level(_SYS_INIT_LEVEL_PRE_KERNEL_1);
_sys_device_do_config_level(_SYS_INIT_LEVEL_PRE_KERNEL_2);