14 #define MAX_SEMAPHORE_COUNT NUM_MAILBOX_QUEUE_SLOT
16 static void *ns_lock_handle = NULL;
24 if (!ns_lock_handle) {
enum tfm_status_e tfm_ns_interface_init(void)
NS interface, Initialise the NS interface.
uint32_t tfm_ns_multi_core_lock_release(void)
Release the multi-core lock for synchronizing PSA client call(s) The actual implementation depends on...
int32_t tfm_platform_ns_wait_for_s_cpu_ready(void)
Synchronisation with secure CPU, platform-specific implementation. Flags that the non-secure side has...
void * os_wrapper_semaphore_create(uint32_t max_count, uint32_t initial_count, const char *name)
Creates a new semaphore.
#define MAX_SEMAPHORE_COUNT
#define OS_WRAPPER_WAIT_FOREVER
uint32_t tfm_ns_multi_core_lock_acquire(void)
Acquire the multi-core lock for synchronizing PSA client call(s) The actual implementation depends on...
uint32_t os_wrapper_semaphore_release(void *handle)
Releases the semaphore.
int32_t tfm_ns_wait_for_s_cpu_ready(void)
Called on the non-secure CPU. Flags that the non-secure side has completed its initialization. Waits, if necessary, for the secure CPU to flag that it has completed its initialization.
uint32_t os_wrapper_semaphore_acquire(void *handle, uint32_t timeout)
Acquires the semaphore.