Call mbed_tfm_init earlier

Change-Id: I0f45425058bf5cabbda877463ff1d8f4d713be8f
Signed-off-by: Mark Horvath <mark.horvath@arm.com>
pull/13400/head
Mark Horvath 2020-06-22 16:36:35 +02:00 committed by Gabor Toth
parent 7f60090ddb
commit 656e046113
2 changed files with 3 additions and 2 deletions

View File

@ -134,6 +134,8 @@ MBED_NORETURN void mbed_rtos_start(void);
*
* Preconditions:
* - The RTOS has been started by a call to mbed_rtos_start
* - If the platform is supported by TF-M, initialization
* has been done by a call to mbed_tfm_init
*/
void mbed_toolchain_init(void);
@ -160,7 +162,6 @@ void mbed_sdk_init(void);
*
* Preconditions:
* - The RTOS has been started by a call to mbed_rtos_start
* - The toolchain has been initialized by a call to mbed_toolchain_init
*/
void mbed_tfm_init(void);

View File

@ -95,8 +95,8 @@ void mbed_init(void)
void mbed_start(void)
{
mbed_rtos_init_singleton_mutex();
mbed_toolchain_init();
mbed_tfm_init();
mbed_toolchain_init();
mbed_main();
mbed_error_initialize();
main();