mirror of https://github.com/ARMmbed/mbed-os.git
Call mbed_tfm_init earlier
Change-Id: I0f45425058bf5cabbda877463ff1d8f4d713be8f Signed-off-by: Mark Horvath <mark.horvath@arm.com>pull/13400/head
parent
7f60090ddb
commit
656e046113
|
@ -134,6 +134,8 @@ MBED_NORETURN void mbed_rtos_start(void);
|
||||||
*
|
*
|
||||||
* Preconditions:
|
* Preconditions:
|
||||||
* - The RTOS has been started by a call to mbed_rtos_start
|
* - 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);
|
void mbed_toolchain_init(void);
|
||||||
|
|
||||||
|
@ -160,7 +162,6 @@ void mbed_sdk_init(void);
|
||||||
*
|
*
|
||||||
* Preconditions:
|
* Preconditions:
|
||||||
* - The RTOS has been started by a call to mbed_rtos_start
|
* - 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);
|
void mbed_tfm_init(void);
|
||||||
|
|
||||||
|
|
|
@ -95,8 +95,8 @@ void mbed_init(void)
|
||||||
void mbed_start(void)
|
void mbed_start(void)
|
||||||
{
|
{
|
||||||
mbed_rtos_init_singleton_mutex();
|
mbed_rtos_init_singleton_mutex();
|
||||||
mbed_toolchain_init();
|
|
||||||
mbed_tfm_init();
|
mbed_tfm_init();
|
||||||
|
mbed_toolchain_init();
|
||||||
mbed_main();
|
mbed_main();
|
||||||
mbed_error_initialize();
|
mbed_error_initialize();
|
||||||
main();
|
main();
|
||||||
|
|
Loading…
Reference in New Issue