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:
parent
1fd8b139c8
commit
982d5c8f55
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue