Mistake on this page?
Report an issue in GitHub or email us
TARGET_TFM_V1_1/include/tfm_multi_core_api.h
1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_MULTI_CORE_API__
9 #define __TFM_MULTI_CORE_API__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include <stdint.h>
16 
17 /**
18  * \brief Called on the non-secure CPU.
19  * Flags that the non-secure side has completed its initialization.
20  * Waits, if necessary, for the secure CPU to flag that it has completed
21  * its initialization.
22  *
23  * \return Return 0 if succeeds.
24  * \return Otherwise, return specific error code.
25  */
26 int32_t tfm_ns_wait_for_s_cpu_ready(void);
27 
28 /**
29  * \brief Synchronisation with secure CPU, platform-specific implementation.
30  * Flags that the non-secure side has completed its initialization.
31  * Waits, if necessary, for the secure CPU to flag that it has completed
32  * its initialization.
33  *
34  * \retval Return 0 if succeeds.
35  * \retval Otherwise, return specific error code.
36  */
37 int32_t tfm_platform_ns_wait_for_s_cpu_ready(void);
38 
39 /**
40  * \brief Acquire the multi-core lock for synchronizing PSA client call(s)
41  * The actual implementation depends on the use scenario.
42  *
43  * \return \ref TFM_SUCCESS on success
44  * \return \ref TFM_ERROR_GENERIC on error
45  */
46 uint32_t tfm_ns_multi_core_lock_acquire(void);
47 
48 /**
49  * \brief Release the multi-core lock for synchronizing PSA client call(s)
50  * The actual implementation depends on the use scenario.
51  *
52  * \return \ref TFM_SUCCESS on success
53  * \return \ref TFM_ERROR_GENERIC on error
54  */
55 uint32_t tfm_ns_multi_core_lock_release(void);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* __TFM_MULTI_CORE_API__ */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.