trusted-firmware-m: Add RTOS integration for native ThreadX
The default configuration of trusted-firmware-m allows only one PSA service call from the non-secure side at any time, because only one secure stack for handling calls is allocated. Thus TF-M's non-secure interface requires a mutex in order to serialize calls. Add an option for using a mutex from the native ThreadX API, as a library named `tfm-ns-interface-threadx`. Note: Even though TF-M already has non-secure support for CMSIS-RTOS, and ThreadX-CDI-Port exists as an adaptation of CMSIS-RTOS on top of ThreadX, this has a major limitation: ThreadX-CDI-Port only works if the RTOS kernel is *started* using CMSIS-RTOS's `osKernelInitialize` and `osKernelStart`. Applications that start the kernel in the native ThreadX way (`tx_application_define`) cannot use ThreadX-CDI-Port later on. Thus we provide an option to use TF-M and ThreadX purely natively. Signed-off-by:Lingkai Dong <lingkai.dong@arm.com> Co-signed-off-by:
Hugues Kamba-Mpiana <hugues.kambampiana@arm.com>
Loading
Please register or sign in to comment