Mistake on this page?
Report an issue in GitHub or email us
tfm_plat_defs.h
1 /*
2  * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_PLAT_DEFS_H__
9 #define __TFM_PLAT_DEFS_H__
10 /**
11  * \note The interfaces defined in this file must be implemented for each
12  * target.
13  */
14 
15 #include <stdint.h>
16 #include <limits.h>
17 
18 enum tfm_plat_err_t {
19  TFM_PLAT_ERR_SUCCESS = 0,
20  TFM_PLAT_ERR_SYSTEM_ERR,
21  TFM_PLAT_ERR_MAX_VALUE,
22  /* Following entry is only to ensure the error code of int size */
23  TFM_PLAT_ERR_FORCE_INT_SIZE = INT_MAX
24 };
25 
26 /*!
27  * \def TFM_LINK_SET_OBJECT_IN_PARTITION_SECTION(TFM_PARTITION_NAME)
28  *
29  * \brief This macro provides a mechanism to place a function code in a specific
30  * secure partition at linker time in TF-M Level 3.
31  *
32  * \param[in] TFM_PARTITION_NAME TF-M partition name assigned in the manifest
33  * file "tfm_partition_name" field.
34  */
35 #define TFM_LINK_SET_OBJECT_IN_PARTITION_SECTION(TFM_PARTITION_NAME) \
36  __attribute__((section(TFM_PARTITION_NAME"_ATTR_FN")))
37 
38 #endif /* __TFM_PLAT_DEFS_H__ */
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.