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>
7 files changed