Skip to content
Commit 5c337714 authored by Lingkai Dong's avatar Lingkai Dong
Browse files

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's avatarLingkai Dong <lingkai.dong@arm.com>
Co-signed-off-by: Hugues Kamba Mpiana's avatarHugues Kamba-Mpiana <hugues.kambampiana@arm.com>
parent 87fd1f92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment