Dualcpu: Add a new NS mailbox working model with a dedicated thread
Support a new NS mailbox working model.
When TFM_MULTI_CORE_NS_OS_MAILBOX_THREAD is selected, NS OS should
allocate a dedicated NS mailbox thread to receive from requests
from application threads and send mailbox messages to SPE.
The new working model consists of the following features:
- Define a request structure to collect paramters of application
threads.
- Pass request from application thread to the NS mailbox thread via
RTOS message queue.
- Assign application thread specific woken flag to enable threads
to check woken status without SVC.
- Remove the semaphores.
When TFM_MULTI_CORE_NS_OS_MAILBOX_THREAD is disabled, the original
NS mailbox working model will be selected.
Also extract common parts from NS mailbox models.
Change-Id: I8f2601c21ad112b10315748b13e5b09cd1f58b29
Signed-off-by: David Hu <david.hu@arm.com>
diff --git a/cmake/install.cmake b/cmake/install.cmake
index ec22027..ab6292a 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -118,6 +118,8 @@
${INTERFACE_SRC_DIR}/multi_core/tfm_multi_core_ns_api.c
${INTERFACE_SRC_DIR}/multi_core/tfm_multi_core_psa_ns_api.c
${INTERFACE_SRC_DIR}/multi_core/tfm_ns_mailbox_rtos_api.c
+ ${INTERFACE_SRC_DIR}/multi_core/tfm_ns_mailbox_thread.c
+ ${INTERFACE_SRC_DIR}/multi_core/tfm_ns_mailbox_test.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
else()
install(FILES ${INTERFACE_SRC_DIR}/tfm_ns_interface.c