Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1 | /* |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 2 | * Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | /*********** WARNING: This is an auto-generated file. Do not edit! ***********/ |
| 9 | |
| 10 | #ifndef __TFM_SPM_DB_INC__ |
| 11 | #define __TFM_SPM_DB_INC__ |
| 12 | |
| 13 | #include "spm_api.h" |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 14 | #include "psa_manifest/sid.h" |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 15 | |
| 16 | /**************************************************************************/ |
| 17 | /** IRQ count per partition */ |
| 18 | /**************************************************************************/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 19 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 20 | #define TFM_PARTITION_TFM_SP_STORAGE_IRQ_COUNT 0 |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 21 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 22 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 23 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 24 | #define TFM_PARTITION_TFM_SP_ITS_IRQ_COUNT 0 |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 25 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 26 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 27 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 28 | #define TFM_PARTITION_TFM_SP_AUDIT_LOG_IRQ_COUNT 0 |
| 29 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 30 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 31 | #ifdef TFM_PARTITION_CRYPTO |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 32 | #define TFM_PARTITION_TFM_SP_CRYPTO_IRQ_COUNT 0 |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 33 | #endif /* TFM_PARTITION_CRYPTO */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 34 | |
| 35 | #ifdef TFM_PARTITION_PLATFORM |
| 36 | #define TFM_PARTITION_TFM_SP_PLATFORM_IRQ_COUNT 0 |
| 37 | #endif /* TFM_PARTITION_PLATFORM */ |
| 38 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 39 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 40 | #define TFM_PARTITION_TFM_SP_INITIAL_ATTESTATION_IRQ_COUNT 0 |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 41 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 42 | |
| 43 | #ifdef TFM_PARTITION_TEST_CORE |
| 44 | #define TFM_PARTITION_TFM_SP_CORE_TEST_IRQ_COUNT 0 |
| 45 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 46 | |
| 47 | #ifdef TFM_PARTITION_TEST_CORE |
| 48 | #define TFM_PARTITION_TFM_SP_CORE_TEST_2_IRQ_COUNT 0 |
| 49 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 50 | |
| 51 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 52 | #define TFM_PARTITION_TFM_SP_SECURE_TEST_PARTITION_IRQ_COUNT 0 |
| 53 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 54 | |
| 55 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 56 | #define TFM_PARTITION_TFM_SP_IPC_SERVICE_TEST_IRQ_COUNT 0 |
| 57 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 58 | |
| 59 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 60 | #define TFM_PARTITION_TFM_SP_IPC_CLIENT_TEST_IRQ_COUNT 0 |
| 61 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 62 | |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 63 | #ifdef TFM_ENABLE_IRQ_TEST |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 64 | #define TFM_PARTITION_TFM_IRQ_TEST_1_IRQ_COUNT 1 |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 65 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 66 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 67 | #ifdef TFM_PARTITION_TEST_SST |
| 68 | #define TFM_PARTITION_TFM_SP_SST_TEST_IRQ_COUNT 0 |
| 69 | #endif /* TFM_PARTITION_TEST_SST */ |
| 70 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 71 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 72 | #define TFM_PARTITION_TFM_SP_SECURE_CLIENT_2_IRQ_COUNT 0 |
| 73 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 74 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 75 | #ifdef TFM_MULTI_CORE_TEST |
| 76 | #define TFM_PARTITION_TFM_SP_MULTI_CORE_TEST_IRQ_COUNT 0 |
| 77 | #endif /* TFM_MULTI_CORE_TEST */ |
| 78 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 79 | /**************************************************************************/ |
| 80 | /** Declarations of partition init functions */ |
| 81 | /**************************************************************************/ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 82 | #ifdef TFM_PSA_API |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 83 | extern void tfm_nspm_thread_entry(void); |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 84 | #endif |
| 85 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 86 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 87 | extern void tfm_sst_req_mngr_init(void); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 88 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 89 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 90 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 91 | extern void tfm_its_req_mngr_init(void); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 92 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 93 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 94 | #ifdef TFM_PARTITION_AUDIT_LOG |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 95 | extern void audit_core_init(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 96 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 97 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 98 | #ifdef TFM_PARTITION_CRYPTO |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 99 | extern void tfm_crypto_init(void); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 100 | #endif /* TFM_PARTITION_CRYPTO */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 101 | |
| 102 | #ifdef TFM_PARTITION_PLATFORM |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 103 | extern void platform_sp_init(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 104 | #endif /* TFM_PARTITION_PLATFORM */ |
| 105 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 106 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 107 | extern void attest_partition_init(void); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 108 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 109 | |
| 110 | #ifdef TFM_PARTITION_TEST_CORE |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 111 | extern void core_test_init(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 112 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 113 | |
| 114 | #ifdef TFM_PARTITION_TEST_CORE |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 115 | extern void core_test_2_init(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 116 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 117 | |
| 118 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 119 | extern void tfm_secure_client_service_init(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 120 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 121 | |
| 122 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 123 | extern void ipc_service_test_main(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 124 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 125 | |
| 126 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 127 | extern void ipc_client_test_main(void); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 128 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 129 | |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 130 | #ifdef TFM_ENABLE_IRQ_TEST |
Edison Ai | 9c48d20 | 2019-10-12 16:57:21 +0800 | [diff] [blame] | 131 | extern void tfm_irq_test_1_init(void); |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 132 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 133 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 134 | #ifdef TFM_PARTITION_TEST_SST |
| 135 | extern void tfm_sst_test_init(void); |
| 136 | #endif /* TFM_PARTITION_TEST_SST */ |
| 137 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 138 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 139 | extern void tfm_secure_client_2_init(void); |
| 140 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 141 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 142 | #ifdef TFM_MULTI_CORE_TEST |
| 143 | extern void multi_core_test_main(void); |
| 144 | #endif /* TFM_MULTI_CORE_TEST */ |
| 145 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 146 | /**************************************************************************/ |
| 147 | /** Memory region declarations */ |
| 148 | /**************************************************************************/ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 149 | #ifdef TFM_PSA_API |
| 150 | REGION_DECLARE(Image$$, ARM_LIB_STACK, $$ZI$$Base); |
| 151 | REGION_DECLARE(Image$$, ARM_LIB_STACK, $$ZI$$Limit); |
| 152 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 153 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 154 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, $$Base); |
| 155 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, $$Limit); |
| 156 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, $$RO$$Base); |
| 157 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, $$RO$$Limit); |
| 158 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _DATA$$RW$$Base); |
| 159 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _DATA$$RW$$Limit); |
| 160 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _DATA$$ZI$$Base); |
| 161 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _DATA$$ZI$$Limit); |
| 162 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _STACK$$ZI$$Base); |
| 163 | REGION_DECLARE(Image$$, TFM_SP_STORAGE_LINKER, _STACK$$ZI$$Limit); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 164 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 165 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 166 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 167 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, $$Base); |
| 168 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, $$Limit); |
| 169 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, $$RO$$Base); |
| 170 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, $$RO$$Limit); |
| 171 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _DATA$$RW$$Base); |
| 172 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _DATA$$RW$$Limit); |
| 173 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _DATA$$ZI$$Base); |
| 174 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _DATA$$ZI$$Limit); |
| 175 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _STACK$$ZI$$Base); |
| 176 | REGION_DECLARE(Image$$, TFM_SP_ITS_LINKER, _STACK$$ZI$$Limit); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 177 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 178 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 179 | #ifdef TFM_PARTITION_AUDIT_LOG |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 180 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, $$Base); |
| 181 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, $$Limit); |
| 182 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, $$RO$$Base); |
| 183 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, $$RO$$Limit); |
| 184 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _DATA$$RW$$Base); |
| 185 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _DATA$$RW$$Limit); |
| 186 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _DATA$$ZI$$Base); |
| 187 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _DATA$$ZI$$Limit); |
| 188 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _STACK$$ZI$$Base); |
| 189 | REGION_DECLARE(Image$$, TFM_SP_AUDIT_LOG_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 190 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 191 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 192 | #ifdef TFM_PARTITION_CRYPTO |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 193 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, $$Base); |
| 194 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, $$Limit); |
| 195 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, $$RO$$Base); |
| 196 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, $$RO$$Limit); |
| 197 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _DATA$$RW$$Base); |
| 198 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _DATA$$RW$$Limit); |
| 199 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _DATA$$ZI$$Base); |
| 200 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _DATA$$ZI$$Limit); |
| 201 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _STACK$$ZI$$Base); |
| 202 | REGION_DECLARE(Image$$, TFM_SP_CRYPTO_LINKER, _STACK$$ZI$$Limit); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 203 | #endif /* TFM_PARTITION_CRYPTO */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 204 | |
| 205 | #ifdef TFM_PARTITION_PLATFORM |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 206 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, $$Base); |
| 207 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, $$Limit); |
| 208 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, $$RO$$Base); |
| 209 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, $$RO$$Limit); |
| 210 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _DATA$$RW$$Base); |
| 211 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _DATA$$RW$$Limit); |
| 212 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _DATA$$ZI$$Base); |
| 213 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _DATA$$ZI$$Limit); |
| 214 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _STACK$$ZI$$Base); |
| 215 | REGION_DECLARE(Image$$, TFM_SP_PLATFORM_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 216 | #endif /* TFM_PARTITION_PLATFORM */ |
| 217 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 218 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 219 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, $$Base); |
| 220 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, $$Limit); |
| 221 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, $$RO$$Base); |
| 222 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, $$RO$$Limit); |
| 223 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$RW$$Base); |
| 224 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$RW$$Limit); |
| 225 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$ZI$$Base); |
| 226 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$ZI$$Limit); |
| 227 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _STACK$$ZI$$Base); |
| 228 | REGION_DECLARE(Image$$, TFM_SP_INITIAL_ATTESTATION_LINKER, _STACK$$ZI$$Limit); |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 229 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 230 | |
| 231 | #ifdef TFM_PARTITION_TEST_CORE |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 232 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, $$Base); |
| 233 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, $$Limit); |
| 234 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, $$RO$$Base); |
| 235 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, $$RO$$Limit); |
| 236 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _DATA$$RW$$Base); |
| 237 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _DATA$$RW$$Limit); |
| 238 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _DATA$$ZI$$Base); |
| 239 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _DATA$$ZI$$Limit); |
| 240 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _STACK$$ZI$$Base); |
| 241 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 242 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 243 | |
| 244 | #ifdef TFM_PARTITION_TEST_CORE |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 245 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, $$Base); |
| 246 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, $$Limit); |
| 247 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, $$RO$$Base); |
| 248 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, $$RO$$Limit); |
| 249 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _DATA$$RW$$Base); |
| 250 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _DATA$$RW$$Limit); |
| 251 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _DATA$$ZI$$Base); |
| 252 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _DATA$$ZI$$Limit); |
| 253 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _STACK$$ZI$$Base); |
| 254 | REGION_DECLARE(Image$$, TFM_SP_CORE_TEST_2_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 255 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 256 | |
| 257 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 258 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, $$Base); |
| 259 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, $$Limit); |
| 260 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, $$RO$$Base); |
| 261 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, $$RO$$Limit); |
| 262 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$RW$$Base); |
| 263 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$RW$$Limit); |
| 264 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$ZI$$Base); |
| 265 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$ZI$$Limit); |
| 266 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _STACK$$ZI$$Base); |
| 267 | REGION_DECLARE(Image$$, TFM_SP_SECURE_TEST_PARTITION_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 268 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 269 | |
| 270 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 271 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, $$Base); |
| 272 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, $$Limit); |
| 273 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, $$RO$$Base); |
| 274 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, $$RO$$Limit); |
| 275 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$RW$$Base); |
| 276 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$RW$$Limit); |
| 277 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$ZI$$Base); |
| 278 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$ZI$$Limit); |
| 279 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _STACK$$ZI$$Base); |
| 280 | REGION_DECLARE(Image$$, TFM_SP_IPC_SERVICE_TEST_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 281 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 282 | |
| 283 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 284 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, $$Base); |
| 285 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, $$Limit); |
| 286 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, $$RO$$Base); |
| 287 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, $$RO$$Limit); |
| 288 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$RW$$Base); |
| 289 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$RW$$Limit); |
| 290 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$ZI$$Base); |
| 291 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$ZI$$Limit); |
| 292 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _STACK$$ZI$$Base); |
| 293 | REGION_DECLARE(Image$$, TFM_SP_IPC_CLIENT_TEST_LINKER, _STACK$$ZI$$Limit); |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 294 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 295 | |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 296 | #ifdef TFM_ENABLE_IRQ_TEST |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 297 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, $$Base); |
| 298 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, $$Limit); |
| 299 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, $$RO$$Base); |
| 300 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, $$RO$$Limit); |
| 301 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _DATA$$RW$$Base); |
| 302 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _DATA$$RW$$Limit); |
| 303 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _DATA$$ZI$$Base); |
| 304 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _DATA$$ZI$$Limit); |
| 305 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _STACK$$ZI$$Base); |
| 306 | REGION_DECLARE(Image$$, TFM_IRQ_TEST_1_LINKER, _STACK$$ZI$$Limit); |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 307 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 308 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 309 | #ifdef TFM_PARTITION_TEST_SST |
| 310 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, $$Base); |
| 311 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, $$Limit); |
| 312 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, $$RO$$Base); |
| 313 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, $$RO$$Limit); |
| 314 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _DATA$$RW$$Base); |
| 315 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _DATA$$RW$$Limit); |
| 316 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _DATA$$ZI$$Base); |
| 317 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _DATA$$ZI$$Limit); |
| 318 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _STACK$$ZI$$Base); |
| 319 | REGION_DECLARE(Image$$, TFM_SP_SST_TEST_LINKER, _STACK$$ZI$$Limit); |
| 320 | #endif /* TFM_PARTITION_TEST_SST */ |
| 321 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 322 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 323 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, $$Base); |
| 324 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, $$Limit); |
| 325 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, $$RO$$Base); |
| 326 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, $$RO$$Limit); |
| 327 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$RW$$Base); |
| 328 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$RW$$Limit); |
| 329 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$ZI$$Base); |
| 330 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$ZI$$Limit); |
| 331 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _STACK$$ZI$$Base); |
| 332 | REGION_DECLARE(Image$$, TFM_SP_SECURE_CLIENT_2_LINKER, _STACK$$ZI$$Limit); |
| 333 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 334 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 335 | #ifdef TFM_MULTI_CORE_TEST |
| 336 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, $$Base); |
| 337 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, $$Limit); |
| 338 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, $$RO$$Base); |
| 339 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, $$RO$$Limit); |
| 340 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$RW$$Base); |
| 341 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$RW$$Limit); |
| 342 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$ZI$$Base); |
| 343 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$ZI$$Limit); |
| 344 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _STACK$$ZI$$Base); |
| 345 | REGION_DECLARE(Image$$, TFM_SP_MULTI_CORE_TEST_LINKER, _STACK$$ZI$$Limit); |
| 346 | #endif /* TFM_MULTI_CORE_TEST */ |
| 347 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 348 | #endif /* defined(TFM_PSA_API) */ |
| 349 | |
Edison Ai | 66fbdf1 | 2019-07-08 16:05:07 +0800 | [diff] [blame] | 350 | #ifndef TFM_PSA_API |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 351 | /**************************************************************************/ |
| 352 | /** Context stacks for IRQ handling */ |
| 353 | /**************************************************************************/ |
| 354 | /* The max size of the context stack can be calculated as a function of the IRQ |
| 355 | * count of the secure partition: |
| 356 | * |
| 357 | * max_stack_size = intr_ctx_size + (IRQ_CNT * (intr_ctx_size + hndl_ctx_size)) |
| 358 | * |
| 359 | * where: |
| 360 | * intr_ctx: Frame pushed when the partition is interrupted |
| 361 | * hndl_ctx: Frame pushed when the partition is handling an interrupt |
| 362 | */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 363 | static uint32_t ns_interrupt_ctx_stack[ |
| 364 | sizeof(struct interrupted_ctx_stack_frame_t) / sizeof(uint32_t)]; |
| 365 | |
| 366 | static uint32_t tfm_core_interrupt_ctx_stack[ |
| 367 | sizeof(struct interrupted_ctx_stack_frame_t) / sizeof(uint32_t)]; |
| 368 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 369 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 370 | static uint32_t ctx_stack_TFM_SP_STORAGE[ |
| 371 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 372 | (TFM_PARTITION_TFM_SP_STORAGE_IRQ_COUNT) * ( |
| 373 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 374 | sizeof(struct handler_ctx_stack_frame_t) |
| 375 | )) / sizeof(uint32_t)]; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 376 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 377 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 378 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 379 | static uint32_t ctx_stack_TFM_SP_ITS[ |
| 380 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 381 | (TFM_PARTITION_TFM_SP_ITS_IRQ_COUNT) * ( |
| 382 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 383 | sizeof(struct handler_ctx_stack_frame_t) |
| 384 | )) / sizeof(uint32_t)]; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 385 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 386 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 387 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 388 | static uint32_t ctx_stack_TFM_SP_AUDIT_LOG[ |
| 389 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 390 | (TFM_PARTITION_TFM_SP_AUDIT_LOG_IRQ_COUNT) * ( |
| 391 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 392 | sizeof(struct handler_ctx_stack_frame_t) |
| 393 | )) / sizeof(uint32_t)]; |
| 394 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 395 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 396 | #ifdef TFM_PARTITION_CRYPTO |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 397 | static uint32_t ctx_stack_TFM_SP_CRYPTO[ |
| 398 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 399 | (TFM_PARTITION_TFM_SP_CRYPTO_IRQ_COUNT) * ( |
| 400 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 401 | sizeof(struct handler_ctx_stack_frame_t) |
| 402 | )) / sizeof(uint32_t)]; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 403 | #endif /* TFM_PARTITION_CRYPTO */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 404 | |
| 405 | #ifdef TFM_PARTITION_PLATFORM |
| 406 | static uint32_t ctx_stack_TFM_SP_PLATFORM[ |
| 407 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 408 | (TFM_PARTITION_TFM_SP_PLATFORM_IRQ_COUNT) * ( |
| 409 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 410 | sizeof(struct handler_ctx_stack_frame_t) |
| 411 | )) / sizeof(uint32_t)]; |
| 412 | #endif /* TFM_PARTITION_PLATFORM */ |
| 413 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 414 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 415 | static uint32_t ctx_stack_TFM_SP_INITIAL_ATTESTATION[ |
| 416 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 417 | (TFM_PARTITION_TFM_SP_INITIAL_ATTESTATION_IRQ_COUNT) * ( |
| 418 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 419 | sizeof(struct handler_ctx_stack_frame_t) |
| 420 | )) / sizeof(uint32_t)]; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 421 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 422 | |
| 423 | #ifdef TFM_PARTITION_TEST_CORE |
| 424 | static uint32_t ctx_stack_TFM_SP_CORE_TEST[ |
| 425 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 426 | (TFM_PARTITION_TFM_SP_CORE_TEST_IRQ_COUNT) * ( |
| 427 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 428 | sizeof(struct handler_ctx_stack_frame_t) |
| 429 | )) / sizeof(uint32_t)]; |
| 430 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 431 | |
| 432 | #ifdef TFM_PARTITION_TEST_CORE |
| 433 | static uint32_t ctx_stack_TFM_SP_CORE_TEST_2[ |
| 434 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 435 | (TFM_PARTITION_TFM_SP_CORE_TEST_2_IRQ_COUNT) * ( |
| 436 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 437 | sizeof(struct handler_ctx_stack_frame_t) |
| 438 | )) / sizeof(uint32_t)]; |
| 439 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 440 | |
| 441 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 442 | static uint32_t ctx_stack_TFM_SP_SECURE_TEST_PARTITION[ |
| 443 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 444 | (TFM_PARTITION_TFM_SP_SECURE_TEST_PARTITION_IRQ_COUNT) * ( |
| 445 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 446 | sizeof(struct handler_ctx_stack_frame_t) |
| 447 | )) / sizeof(uint32_t)]; |
| 448 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 449 | |
| 450 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 451 | static uint32_t ctx_stack_TFM_SP_IPC_SERVICE_TEST[ |
| 452 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 453 | (TFM_PARTITION_TFM_SP_IPC_SERVICE_TEST_IRQ_COUNT) * ( |
| 454 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 455 | sizeof(struct handler_ctx_stack_frame_t) |
| 456 | )) / sizeof(uint32_t)]; |
| 457 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 458 | |
| 459 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 460 | static uint32_t ctx_stack_TFM_SP_IPC_CLIENT_TEST[ |
| 461 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 462 | (TFM_PARTITION_TFM_SP_IPC_CLIENT_TEST_IRQ_COUNT) * ( |
| 463 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 464 | sizeof(struct handler_ctx_stack_frame_t) |
| 465 | )) / sizeof(uint32_t)]; |
| 466 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 467 | |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 468 | #ifdef TFM_ENABLE_IRQ_TEST |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 469 | static uint32_t ctx_stack_TFM_IRQ_TEST_1[ |
| 470 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 471 | (TFM_PARTITION_TFM_IRQ_TEST_1_IRQ_COUNT) * ( |
| 472 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 473 | sizeof(struct handler_ctx_stack_frame_t) |
| 474 | )) / sizeof(uint32_t)]; |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 475 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 476 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 477 | #ifdef TFM_PARTITION_TEST_SST |
| 478 | static uint32_t ctx_stack_TFM_SP_SST_TEST[ |
| 479 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 480 | (TFM_PARTITION_TFM_SP_SST_TEST_IRQ_COUNT) * ( |
| 481 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 482 | sizeof(struct handler_ctx_stack_frame_t) |
| 483 | )) / sizeof(uint32_t)]; |
| 484 | #endif /* TFM_PARTITION_TEST_SST */ |
| 485 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 486 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 487 | static uint32_t ctx_stack_TFM_SP_SECURE_CLIENT_2[ |
| 488 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 489 | (TFM_PARTITION_TFM_SP_SECURE_CLIENT_2_IRQ_COUNT) * ( |
| 490 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 491 | sizeof(struct handler_ctx_stack_frame_t) |
| 492 | )) / sizeof(uint32_t)]; |
| 493 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 494 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 495 | #ifdef TFM_MULTI_CORE_TEST |
| 496 | static uint32_t ctx_stack_TFM_SP_MULTI_CORE_TEST[ |
| 497 | (sizeof(struct interrupted_ctx_stack_frame_t) + |
| 498 | (TFM_PARTITION_TFM_SP_MULTI_CORE_TEST_IRQ_COUNT) * ( |
| 499 | sizeof(struct interrupted_ctx_stack_frame_t) + |
| 500 | sizeof(struct handler_ctx_stack_frame_t) |
| 501 | )) / sizeof(uint32_t)]; |
| 502 | #endif /* TFM_MULTI_CORE_TEST */ |
| 503 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 504 | |
| 505 | uint32_t *ctx_stack_list[] = |
| 506 | { |
| 507 | ns_interrupt_ctx_stack, |
| 508 | tfm_core_interrupt_ctx_stack, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 509 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 510 | ctx_stack_TFM_SP_STORAGE, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 511 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
| 512 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 513 | ctx_stack_TFM_SP_ITS, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 514 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 515 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 516 | ctx_stack_TFM_SP_AUDIT_LOG, |
| 517 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 518 | #ifdef TFM_PARTITION_CRYPTO |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 519 | ctx_stack_TFM_SP_CRYPTO, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 520 | #endif /* TFM_PARTITION_CRYPTO */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 521 | #ifdef TFM_PARTITION_PLATFORM |
| 522 | ctx_stack_TFM_SP_PLATFORM, |
| 523 | #endif /* TFM_PARTITION_PLATFORM */ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 524 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 525 | ctx_stack_TFM_SP_INITIAL_ATTESTATION, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 526 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 527 | #ifdef TFM_PARTITION_TEST_CORE |
| 528 | ctx_stack_TFM_SP_CORE_TEST, |
| 529 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 530 | #ifdef TFM_PARTITION_TEST_CORE |
| 531 | ctx_stack_TFM_SP_CORE_TEST_2, |
| 532 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 533 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 534 | ctx_stack_TFM_SP_SECURE_TEST_PARTITION, |
| 535 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 536 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 537 | ctx_stack_TFM_SP_IPC_SERVICE_TEST, |
| 538 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 539 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 540 | ctx_stack_TFM_SP_IPC_CLIENT_TEST, |
| 541 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 542 | #ifdef TFM_ENABLE_IRQ_TEST |
| 543 | ctx_stack_TFM_IRQ_TEST_1, |
| 544 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 545 | #ifdef TFM_PARTITION_TEST_SST |
| 546 | ctx_stack_TFM_SP_SST_TEST, |
| 547 | #endif /* TFM_PARTITION_TEST_SST */ |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 548 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 549 | ctx_stack_TFM_SP_SECURE_CLIENT_2, |
| 550 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 551 | #ifdef TFM_MULTI_CORE_TEST |
| 552 | ctx_stack_TFM_SP_MULTI_CORE_TEST, |
| 553 | #endif /* TFM_MULTI_CORE_TEST */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 554 | }; |
Edison Ai | 66fbdf1 | 2019-07-08 16:05:07 +0800 | [diff] [blame] | 555 | #endif /* !defined(TFM_PSA_API) */ |
| 556 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 557 | /**************************************************************************/ |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 558 | /** Dependencies array for Secure Partition */ |
| 559 | /**************************************************************************/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 560 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 561 | static int32_t dependencies_TFM_SP_STORAGE[] = |
| 562 | { |
| 563 | TFM_CRYPTO_SID, |
TudorCretu | 1ad0937 | 2019-08-09 15:35:12 +0100 | [diff] [blame] | 564 | TFM_ITS_SET_SID, |
| 565 | TFM_ITS_GET_SID, |
| 566 | TFM_ITS_GET_INFO_SID, |
| 567 | TFM_ITS_REMOVE_SID, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 568 | }; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 569 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 570 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 571 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 572 | static int32_t dependencies_TFM_SP_INITIAL_ATTESTATION[] = |
| 573 | { |
| 574 | TFM_CRYPTO_SID, |
| 575 | }; |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 576 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 577 | |
| 578 | #ifdef TFM_PARTITION_TEST_CORE |
| 579 | static int32_t dependencies_TFM_SP_CORE_TEST[] = |
| 580 | { |
| 581 | SPM_CORE_TEST_2_INVERT_SID, |
| 582 | SPM_CORE_TEST_2_GET_EVERY_SECOND_BYTE_SID, |
| 583 | SPM_CORE_TEST_2_SLAVE_SERVICE_SID, |
| 584 | }; |
| 585 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 586 | |
| 587 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 588 | static int32_t dependencies_TFM_SP_SECURE_TEST_PARTITION[] = |
| 589 | { |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 590 | TFM_SECURE_CLIENT_2_SID, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 591 | TFM_CRYPTO_SID, |
| 592 | TFM_SST_SET_SID, |
| 593 | TFM_SST_GET_SID, |
| 594 | TFM_SST_GET_INFO_SID, |
| 595 | TFM_SST_REMOVE_SID, |
| 596 | TFM_SST_GET_SUPPORT_SID, |
| 597 | TFM_ITS_SET_SID, |
| 598 | TFM_ITS_GET_SID, |
| 599 | TFM_ITS_GET_INFO_SID, |
| 600 | TFM_ITS_REMOVE_SID, |
| 601 | TFM_ATTEST_GET_TOKEN_SID, |
| 602 | TFM_ATTEST_GET_TOKEN_SIZE_SID, |
| 603 | TFM_ATTEST_GET_PUBLIC_KEY_SID, |
| 604 | TFM_SST_TEST_PREPARE_SID, |
Edison Ai | a765f23 | 2019-12-06 15:41:38 +0800 | [diff] [blame] | 605 | TFM_SP_PLATFORM_SYSTEM_RESET_SID, |
| 606 | TFM_SP_PLATFORM_IOCTL_SID, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 607 | }; |
| 608 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 609 | |
| 610 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 611 | static int32_t dependencies_TFM_SP_IPC_CLIENT_TEST[] = |
| 612 | { |
| 613 | IPC_SERVICE_TEST_PSA_ACCESS_APP_READ_ONLY_MEM_SID, |
| 614 | IPC_SERVICE_TEST_PSA_ACCESS_APP_MEM_SID, |
| 615 | IPC_SERVICE_TEST_BASIC_SID, |
| 616 | IPC_SERVICE_TEST_APP_ACCESS_PSA_MEM_SID, |
| 617 | }; |
| 618 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 619 | |
| 620 | #ifdef TFM_PARTITION_TEST_SST |
| 621 | static int32_t dependencies_TFM_SP_SST_TEST[] = |
| 622 | { |
| 623 | TFM_CRYPTO_SID, |
TudorCretu | 1ad0937 | 2019-08-09 15:35:12 +0100 | [diff] [blame] | 624 | TFM_ITS_GET_SID, |
| 625 | TFM_ITS_REMOVE_SID, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 626 | }; |
| 627 | #endif /* TFM_PARTITION_TEST_SST */ |
| 628 | |
Jamie Fox | fafeff7 | 2019-12-12 17:17:24 +0000 | [diff] [blame] | 629 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 630 | static int32_t dependencies_TFM_SP_SECURE_CLIENT_2[] = |
| 631 | { |
| 632 | TFM_ITS_GET_SID, |
Jamie Fox | c0b6685 | 2019-12-19 16:40:41 +0000 | [diff] [blame] | 633 | TFM_CRYPTO_SID, |
Jamie Fox | fafeff7 | 2019-12-12 17:17:24 +0000 | [diff] [blame] | 634 | }; |
| 635 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 636 | |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 637 | /**************************************************************************/ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 638 | /** The static data of the partition list */ |
| 639 | /**************************************************************************/ |
| 640 | const struct spm_partition_static_data_t static_data_list[] = |
| 641 | { |
| 642 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 643 | #ifdef TFM_PSA_API |
| 644 | .psa_framework_version = 0x0100, |
| 645 | #endif /* defined(TFM_PSA_API) */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 646 | .partition_id = TFM_SP_NON_SECURE_ID, |
| 647 | #ifdef TFM_PSA_API |
David Hu | 90128b7 | 2019-09-23 16:35:41 +0800 | [diff] [blame] | 648 | #if TFM_MULTI_CORE_TOPOLOGY |
| 649 | .partition_flags = SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_IPC, |
| 650 | #else |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 651 | .partition_flags = SPM_PART_FLAG_APP_ROT | SPM_PART_FLAG_IPC, |
David Hu | 90128b7 | 2019-09-23 16:35:41 +0800 | [diff] [blame] | 652 | #endif |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 653 | .partition_priority = TFM_PRIORITY_LOW, |
| 654 | .partition_init = tfm_nspm_thread_entry, |
| 655 | #else |
| 656 | .partition_flags = 0, |
| 657 | #endif |
| 658 | }, |
| 659 | |
| 660 | #ifndef TFM_PSA_API |
| 661 | { |
| 662 | .partition_id = TFM_SP_CORE_ID, |
| 663 | .partition_flags = SPM_PART_FLAG_APP_ROT | SPM_PART_FLAG_PSA_ROT, |
| 664 | }, |
| 665 | #endif |
| 666 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 667 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 668 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 669 | #ifdef TFM_PSA_API |
| 670 | .psa_framework_version = 0x0100, |
| 671 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 672 | .partition_id = TFM_SP_STORAGE, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 673 | .partition_flags = SPM_PART_FLAG_IPC |
| 674 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 675 | , |
| 676 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 677 | .partition_init = tfm_sst_req_mngr_init, |
TudorCretu | 1ad0937 | 2019-08-09 15:35:12 +0100 | [diff] [blame] | 678 | .dependencies_num = 5, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 679 | .p_dependencies = dependencies_TFM_SP_STORAGE, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 680 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 681 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 682 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 683 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 684 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 685 | #ifdef TFM_PSA_API |
| 686 | .psa_framework_version = 0x0100, |
| 687 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 688 | .partition_id = TFM_SP_ITS, |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 689 | .partition_flags = SPM_PART_FLAG_IPC |
| 690 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 691 | , |
| 692 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 693 | .partition_init = tfm_its_req_mngr_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 694 | .dependencies_num = 0, |
| 695 | .p_dependencies = NULL, |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 696 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 697 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 698 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 699 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 700 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 701 | #ifdef TFM_PSA_API |
| 702 | .psa_framework_version = 0x0100, |
| 703 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 704 | .partition_id = TFM_SP_AUDIT_LOG, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 705 | .partition_flags = 0 |
| 706 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 707 | , |
| 708 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 709 | .partition_init = audit_core_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 710 | .dependencies_num = 0, |
| 711 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 712 | }, |
| 713 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 714 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 715 | #ifdef TFM_PARTITION_CRYPTO |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 716 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 717 | #ifdef TFM_PSA_API |
| 718 | .psa_framework_version = 0x0100, |
| 719 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 720 | .partition_id = TFM_SP_CRYPTO, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 721 | .partition_flags = SPM_PART_FLAG_IPC |
| 722 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 723 | , |
| 724 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 725 | .partition_init = tfm_crypto_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 726 | .dependencies_num = 0, |
| 727 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 728 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 729 | #endif /* TFM_PARTITION_CRYPTO */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 730 | |
| 731 | #ifdef TFM_PARTITION_PLATFORM |
| 732 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 733 | #ifdef TFM_PSA_API |
| 734 | .psa_framework_version = 0x0100, |
| 735 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 736 | .partition_id = TFM_SP_PLATFORM, |
Mate Toth-Pal | 179a156 | 2019-11-08 11:40:27 +0100 | [diff] [blame] | 737 | .partition_flags = SPM_PART_FLAG_IPC |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 738 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 739 | , |
| 740 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 741 | .partition_init = platform_sp_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 742 | .dependencies_num = 0, |
| 743 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 744 | }, |
| 745 | #endif /* TFM_PARTITION_PLATFORM */ |
| 746 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 747 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 748 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 749 | #ifdef TFM_PSA_API |
| 750 | .psa_framework_version = 0x0100, |
| 751 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 752 | .partition_id = TFM_SP_INITIAL_ATTESTATION, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 753 | .partition_flags = SPM_PART_FLAG_IPC |
| 754 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 755 | , |
| 756 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 757 | .partition_init = attest_partition_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 758 | .dependencies_num = 1, |
| 759 | .p_dependencies = dependencies_TFM_SP_INITIAL_ATTESTATION, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 760 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 761 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 762 | |
| 763 | #ifdef TFM_PARTITION_TEST_CORE |
| 764 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 765 | #ifdef TFM_PSA_API |
| 766 | .psa_framework_version = 0x0100, |
| 767 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 768 | .partition_id = TFM_SP_CORE_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 769 | .partition_flags = SPM_PART_FLAG_IPC |
Mate Toth-Pal | acae8bd | 2019-09-10 16:47:11 +0200 | [diff] [blame] | 770 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 771 | , |
| 772 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 773 | .partition_init = core_test_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 774 | .dependencies_num = 3, |
| 775 | .p_dependencies = dependencies_TFM_SP_CORE_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 776 | }, |
| 777 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 778 | |
| 779 | #ifdef TFM_PARTITION_TEST_CORE |
| 780 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 781 | #ifdef TFM_PSA_API |
| 782 | .psa_framework_version = 0x0100, |
| 783 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 784 | .partition_id = TFM_SP_CORE_TEST_2, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 785 | .partition_flags = SPM_PART_FLAG_IPC |
| 786 | | SPM_PART_FLAG_APP_ROT |
| 787 | , |
| 788 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 789 | .partition_init = core_test_2_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 790 | .dependencies_num = 0, |
| 791 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 792 | }, |
| 793 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 794 | |
| 795 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 796 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 797 | #ifdef TFM_PSA_API |
| 798 | .psa_framework_version = 0x0100, |
| 799 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 800 | .partition_id = TFM_SP_SECURE_TEST_PARTITION, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 801 | .partition_flags = SPM_PART_FLAG_IPC |
| 802 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 803 | , |
| 804 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 805 | .partition_init = tfm_secure_client_service_init, |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 806 | .dependencies_num = 17, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 807 | .p_dependencies = dependencies_TFM_SP_SECURE_TEST_PARTITION, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 808 | }, |
| 809 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 810 | |
| 811 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 812 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 813 | #ifdef TFM_PSA_API |
| 814 | .psa_framework_version = 0x0100, |
| 815 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 816 | .partition_id = TFM_SP_IPC_SERVICE_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 817 | .partition_flags = SPM_PART_FLAG_IPC |
| 818 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 819 | , |
| 820 | .partition_priority = TFM_PRIORITY(HIGH), |
| 821 | .partition_init = ipc_service_test_main, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 822 | .dependencies_num = 0, |
| 823 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 824 | }, |
| 825 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 826 | |
| 827 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 828 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 829 | #ifdef TFM_PSA_API |
| 830 | .psa_framework_version = 0x0100, |
| 831 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 832 | .partition_id = TFM_SP_IPC_CLIENT_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 833 | .partition_flags = SPM_PART_FLAG_IPC |
| 834 | | SPM_PART_FLAG_APP_ROT |
| 835 | , |
| 836 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 837 | .partition_init = ipc_client_test_main, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 838 | .dependencies_num = 4, |
| 839 | .p_dependencies = dependencies_TFM_SP_IPC_CLIENT_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 840 | }, |
| 841 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 842 | |
| 843 | #ifdef TFM_ENABLE_IRQ_TEST |
| 844 | { |
Edison Ai | f050170 | 2019-10-11 14:36:42 +0800 | [diff] [blame] | 845 | #ifdef TFM_PSA_API |
| 846 | .psa_framework_version = 0x0100, |
| 847 | #endif /* defined(TFM_PSA_API) */ |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 848 | .partition_id = TFM_IRQ_TEST_1, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 849 | .partition_flags = SPM_PART_FLAG_IPC |
| 850 | | SPM_PART_FLAG_APP_ROT |
| 851 | , |
| 852 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 853 | .partition_init = tfm_irq_test_1_init, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 854 | .dependencies_num = 0, |
| 855 | .p_dependencies = NULL, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 856 | }, |
| 857 | #endif /* TFM_ENABLE_IRQ_TEST */ |
| 858 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 859 | #ifdef TFM_PARTITION_TEST_SST |
| 860 | { |
| 861 | #ifdef TFM_PSA_API |
| 862 | .psa_framework_version = 0x0100, |
| 863 | #endif /* defined(TFM_PSA_API) */ |
| 864 | .partition_id = TFM_SP_SST_TEST, |
| 865 | .partition_flags = SPM_PART_FLAG_IPC |
| 866 | | SPM_PART_FLAG_PSA_ROT | SPM_PART_FLAG_APP_ROT |
| 867 | , |
| 868 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 869 | .partition_init = tfm_sst_test_init, |
TudorCretu | 1ad0937 | 2019-08-09 15:35:12 +0100 | [diff] [blame] | 870 | .dependencies_num = 3, |
Edison Ai | e728fbf | 2019-11-13 09:37:12 +0800 | [diff] [blame] | 871 | .p_dependencies = dependencies_TFM_SP_SST_TEST, |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 872 | }, |
| 873 | #endif /* TFM_PARTITION_TEST_SST */ |
| 874 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 875 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 876 | { |
| 877 | #ifdef TFM_PSA_API |
| 878 | .psa_framework_version = 0x0100, |
| 879 | #endif /* defined(TFM_PSA_API) */ |
| 880 | .partition_id = TFM_SP_SECURE_CLIENT_2, |
| 881 | .partition_flags = SPM_PART_FLAG_IPC |
| 882 | | SPM_PART_FLAG_APP_ROT |
| 883 | , |
| 884 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 885 | .partition_init = tfm_secure_client_2_init, |
Jamie Fox | c0b6685 | 2019-12-19 16:40:41 +0000 | [diff] [blame] | 886 | .dependencies_num = 2, |
Jamie Fox | fafeff7 | 2019-12-12 17:17:24 +0000 | [diff] [blame] | 887 | .p_dependencies = dependencies_TFM_SP_SECURE_CLIENT_2, |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 888 | }, |
| 889 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 890 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 891 | #ifdef TFM_MULTI_CORE_TEST |
| 892 | { |
| 893 | #ifdef TFM_PSA_API |
| 894 | .psa_framework_version = 0x0100, |
| 895 | #endif /* defined(TFM_PSA_API) */ |
| 896 | .partition_id = TFM_SP_MULTI_CORE_TEST, |
| 897 | .partition_flags = SPM_PART_FLAG_IPC |
| 898 | | SPM_PART_FLAG_APP_ROT |
| 899 | , |
| 900 | .partition_priority = TFM_PRIORITY(NORMAL), |
| 901 | .partition_init = multi_core_test_main, |
| 902 | .dependencies_num = 0, |
| 903 | .p_dependencies = NULL, |
| 904 | }, |
| 905 | #endif /* TFM_MULTI_CORE_TEST */ |
| 906 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 907 | }; |
| 908 | |
| 909 | /**************************************************************************/ |
| 910 | /** The platform data of the partition list */ |
| 911 | /**************************************************************************/ |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 912 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 913 | const struct tfm_spm_partition_platform_data_t * |
| 914 | platform_data_list_TFM_SP_AUDIT_LOG[] = |
| 915 | { |
| 916 | #ifdef AUDIT_UART_REDIRECTION |
| 917 | TFM_PERIPHERAL_UART1, |
| 918 | #endif /* AUDIT_UART_REDIRECTION */ |
| 919 | NULL |
| 920 | }; |
| 921 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 922 | |
| 923 | #ifdef TFM_PARTITION_TEST_CORE |
| 924 | const struct tfm_spm_partition_platform_data_t * |
| 925 | platform_data_list_TFM_SP_CORE_TEST[] = |
| 926 | { |
| 927 | TFM_PERIPHERAL_FPGA_IO, |
| 928 | NULL |
| 929 | }; |
| 930 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 931 | |
| 932 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 933 | const struct tfm_spm_partition_platform_data_t * |
| 934 | platform_data_list_TFM_SP_SECURE_TEST_PARTITION[] = |
| 935 | { |
| 936 | TFM_PERIPHERAL_STD_UART, |
| 937 | NULL |
| 938 | }; |
| 939 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 940 | |
| 941 | #ifdef TFM_ENABLE_IRQ_TEST |
| 942 | const struct tfm_spm_partition_platform_data_t * |
| 943 | platform_data_list_TFM_IRQ_TEST_1[] = |
| 944 | { |
| 945 | TFM_PERIPHERAL_TIMER0, |
| 946 | NULL |
| 947 | }; |
| 948 | #endif /* TFM_ENABLE_IRQ_TEST */ |
| 949 | |
| 950 | const struct tfm_spm_partition_platform_data_t **platform_data_list_list[] = |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 951 | { |
| 952 | NULL, |
| 953 | |
| 954 | #ifndef TFM_PSA_API |
| 955 | NULL, |
| 956 | #endif |
| 957 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 958 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 959 | NULL, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 960 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 961 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 962 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 963 | NULL, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 964 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 965 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 966 | #ifdef TFM_PARTITION_AUDIT_LOG |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 967 | platform_data_list_TFM_SP_AUDIT_LOG, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 968 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 969 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 970 | #ifdef TFM_PARTITION_CRYPTO |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 971 | NULL, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 972 | #endif /* TFM_PARTITION_CRYPTO */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 973 | |
| 974 | #ifdef TFM_PARTITION_PLATFORM |
| 975 | NULL, |
| 976 | #endif /* TFM_PARTITION_PLATFORM */ |
| 977 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 978 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 979 | NULL, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 980 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 981 | |
| 982 | #ifdef TFM_PARTITION_TEST_CORE |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 983 | platform_data_list_TFM_SP_CORE_TEST, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 984 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 985 | |
| 986 | #ifdef TFM_PARTITION_TEST_CORE |
| 987 | NULL, |
| 988 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 989 | |
| 990 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 991 | platform_data_list_TFM_SP_SECURE_TEST_PARTITION, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 992 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 993 | |
| 994 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 995 | NULL, |
| 996 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 997 | |
| 998 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 999 | NULL, |
| 1000 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 1001 | |
| 1002 | #ifdef TFM_ENABLE_IRQ_TEST |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1003 | platform_data_list_TFM_IRQ_TEST_1, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1004 | #endif /* TFM_ENABLE_IRQ_TEST */ |
| 1005 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 1006 | #ifdef TFM_PARTITION_TEST_SST |
| 1007 | NULL, |
| 1008 | #endif /* TFM_PARTITION_TEST_SST */ |
| 1009 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 1010 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 1011 | NULL, |
| 1012 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 1013 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 1014 | #ifdef TFM_MULTI_CORE_TEST |
| 1015 | NULL, |
| 1016 | #endif /* TFM_MULTI_CORE_TEST */ |
| 1017 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1018 | }; |
| 1019 | |
| 1020 | /**************************************************************************/ |
| 1021 | /** The memory data of the partition list */ |
| 1022 | /**************************************************************************/ |
| 1023 | #ifdef TFM_PSA_API |
| 1024 | const struct tfm_spm_partition_memory_data_t memory_data_list[] = |
| 1025 | { |
| 1026 | { |
| 1027 | .stack_bottom = PART_REGION_ADDR(ARM_LIB_STACK, $$ZI$$Base), |
| 1028 | .stack_top = PART_REGION_ADDR(ARM_LIB_STACK, $$ZI$$Limit), |
| 1029 | .rw_start = PART_REGION_ADDR(ARM_LIB_STACK, $$ZI$$Base), |
| 1030 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1031 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1032 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1033 | .code_start = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, $$Base), |
| 1034 | .code_limit = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, $$Limit), |
| 1035 | .ro_start = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, $$RO$$Base), |
| 1036 | .ro_limit = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, $$RO$$Limit), |
| 1037 | .rw_start = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _DATA$$RW$$Base), |
| 1038 | .rw_limit = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _DATA$$RW$$Limit), |
| 1039 | .zi_start = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _DATA$$ZI$$Base), |
| 1040 | .zi_limit = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _DATA$$ZI$$Limit), |
| 1041 | .stack_bottom = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _STACK$$ZI$$Base), |
| 1042 | .stack_top = PART_REGION_ADDR(TFM_SP_STORAGE_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1043 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1044 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1045 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1046 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1047 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1048 | .code_start = PART_REGION_ADDR(TFM_SP_ITS_LINKER, $$Base), |
| 1049 | .code_limit = PART_REGION_ADDR(TFM_SP_ITS_LINKER, $$Limit), |
| 1050 | .ro_start = PART_REGION_ADDR(TFM_SP_ITS_LINKER, $$RO$$Base), |
| 1051 | .ro_limit = PART_REGION_ADDR(TFM_SP_ITS_LINKER, $$RO$$Limit), |
| 1052 | .rw_start = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _DATA$$RW$$Base), |
| 1053 | .rw_limit = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _DATA$$RW$$Limit), |
| 1054 | .zi_start = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _DATA$$ZI$$Base), |
| 1055 | .zi_limit = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _DATA$$ZI$$Limit), |
| 1056 | .stack_bottom = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _STACK$$ZI$$Base), |
| 1057 | .stack_top = PART_REGION_ADDR(TFM_SP_ITS_LINKER, _STACK$$ZI$$Limit), |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1058 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1059 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1060 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1061 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 1062 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1063 | .code_start = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, $$Base), |
| 1064 | .code_limit = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, $$Limit), |
| 1065 | .ro_start = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, $$RO$$Base), |
| 1066 | .ro_limit = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, $$RO$$Limit), |
| 1067 | .rw_start = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _DATA$$RW$$Base), |
| 1068 | .rw_limit = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _DATA$$RW$$Limit), |
| 1069 | .zi_start = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _DATA$$ZI$$Base), |
| 1070 | .zi_limit = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _DATA$$ZI$$Limit), |
| 1071 | .stack_bottom = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _STACK$$ZI$$Base), |
| 1072 | .stack_top = PART_REGION_ADDR(TFM_SP_AUDIT_LOG_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1073 | }, |
| 1074 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 1075 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1076 | #ifdef TFM_PARTITION_CRYPTO |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1077 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1078 | .code_start = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, $$Base), |
| 1079 | .code_limit = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, $$Limit), |
| 1080 | .ro_start = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, $$RO$$Base), |
| 1081 | .ro_limit = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, $$RO$$Limit), |
| 1082 | .rw_start = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _DATA$$RW$$Base), |
| 1083 | .rw_limit = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _DATA$$RW$$Limit), |
| 1084 | .zi_start = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _DATA$$ZI$$Base), |
| 1085 | .zi_limit = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _DATA$$ZI$$Limit), |
| 1086 | .stack_bottom = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _STACK$$ZI$$Base), |
| 1087 | .stack_top = PART_REGION_ADDR(TFM_SP_CRYPTO_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1088 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1089 | #endif /* TFM_PARTITION_CRYPTO */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1090 | |
| 1091 | #ifdef TFM_PARTITION_PLATFORM |
| 1092 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1093 | .code_start = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, $$Base), |
| 1094 | .code_limit = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, $$Limit), |
| 1095 | .ro_start = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, $$RO$$Base), |
| 1096 | .ro_limit = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, $$RO$$Limit), |
| 1097 | .rw_start = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _DATA$$RW$$Base), |
| 1098 | .rw_limit = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _DATA$$RW$$Limit), |
| 1099 | .zi_start = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _DATA$$ZI$$Base), |
| 1100 | .zi_limit = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _DATA$$ZI$$Limit), |
| 1101 | .stack_bottom = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _STACK$$ZI$$Base), |
| 1102 | .stack_top = PART_REGION_ADDR(TFM_SP_PLATFORM_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1103 | }, |
| 1104 | #endif /* TFM_PARTITION_PLATFORM */ |
| 1105 | |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1106 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1107 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1108 | .code_start = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, $$Base), |
| 1109 | .code_limit = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, $$Limit), |
| 1110 | .ro_start = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, $$RO$$Base), |
| 1111 | .ro_limit = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, $$RO$$Limit), |
| 1112 | .rw_start = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$RW$$Base), |
| 1113 | .rw_limit = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$RW$$Limit), |
| 1114 | .zi_start = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$ZI$$Base), |
| 1115 | .zi_limit = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _DATA$$ZI$$Limit), |
| 1116 | .stack_bottom = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _STACK$$ZI$$Base), |
| 1117 | .stack_top = PART_REGION_ADDR(TFM_SP_INITIAL_ATTESTATION_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1118 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1119 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1120 | |
| 1121 | #ifdef TFM_PARTITION_TEST_CORE |
| 1122 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1123 | .code_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, $$Base), |
| 1124 | .code_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, $$Limit), |
| 1125 | .ro_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, $$RO$$Base), |
| 1126 | .ro_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, $$RO$$Limit), |
| 1127 | .rw_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _DATA$$RW$$Base), |
| 1128 | .rw_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _DATA$$RW$$Limit), |
| 1129 | .zi_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _DATA$$ZI$$Base), |
| 1130 | .zi_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _DATA$$ZI$$Limit), |
| 1131 | .stack_bottom = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _STACK$$ZI$$Base), |
| 1132 | .stack_top = PART_REGION_ADDR(TFM_SP_CORE_TEST_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1133 | }, |
| 1134 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 1135 | |
| 1136 | #ifdef TFM_PARTITION_TEST_CORE |
| 1137 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1138 | .code_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, $$Base), |
| 1139 | .code_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, $$Limit), |
| 1140 | .ro_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, $$RO$$Base), |
| 1141 | .ro_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, $$RO$$Limit), |
| 1142 | .rw_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _DATA$$RW$$Base), |
| 1143 | .rw_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _DATA$$RW$$Limit), |
| 1144 | .zi_start = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _DATA$$ZI$$Base), |
| 1145 | .zi_limit = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _DATA$$ZI$$Limit), |
| 1146 | .stack_bottom = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _STACK$$ZI$$Base), |
| 1147 | .stack_top = PART_REGION_ADDR(TFM_SP_CORE_TEST_2_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1148 | }, |
| 1149 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 1150 | |
| 1151 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 1152 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1153 | .code_start = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, $$Base), |
| 1154 | .code_limit = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, $$Limit), |
| 1155 | .ro_start = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, $$RO$$Base), |
| 1156 | .ro_limit = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, $$RO$$Limit), |
| 1157 | .rw_start = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$RW$$Base), |
| 1158 | .rw_limit = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$RW$$Limit), |
| 1159 | .zi_start = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$ZI$$Base), |
| 1160 | .zi_limit = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _DATA$$ZI$$Limit), |
| 1161 | .stack_bottom = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _STACK$$ZI$$Base), |
| 1162 | .stack_top = PART_REGION_ADDR(TFM_SP_SECURE_TEST_PARTITION_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1163 | }, |
| 1164 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 1165 | |
| 1166 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 1167 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1168 | .code_start = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, $$Base), |
| 1169 | .code_limit = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, $$Limit), |
| 1170 | .ro_start = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, $$RO$$Base), |
| 1171 | .ro_limit = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, $$RO$$Limit), |
| 1172 | .rw_start = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$RW$$Base), |
| 1173 | .rw_limit = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$RW$$Limit), |
| 1174 | .zi_start = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$ZI$$Base), |
| 1175 | .zi_limit = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _DATA$$ZI$$Limit), |
| 1176 | .stack_bottom = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _STACK$$ZI$$Base), |
| 1177 | .stack_top = PART_REGION_ADDR(TFM_SP_IPC_SERVICE_TEST_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1178 | }, |
| 1179 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 1180 | |
| 1181 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 1182 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1183 | .code_start = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, $$Base), |
| 1184 | .code_limit = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, $$Limit), |
| 1185 | .ro_start = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, $$RO$$Base), |
| 1186 | .ro_limit = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, $$RO$$Limit), |
| 1187 | .rw_start = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$RW$$Base), |
| 1188 | .rw_limit = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$RW$$Limit), |
| 1189 | .zi_start = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$ZI$$Base), |
| 1190 | .zi_limit = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _DATA$$ZI$$Limit), |
| 1191 | .stack_bottom = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _STACK$$ZI$$Base), |
| 1192 | .stack_top = PART_REGION_ADDR(TFM_SP_IPC_CLIENT_TEST_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1193 | }, |
| 1194 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 1195 | |
| 1196 | #ifdef TFM_ENABLE_IRQ_TEST |
| 1197 | { |
Edison Ai | b2134e6 | 2019-10-11 18:24:47 +0800 | [diff] [blame] | 1198 | .code_start = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, $$Base), |
| 1199 | .code_limit = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, $$Limit), |
| 1200 | .ro_start = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, $$RO$$Base), |
| 1201 | .ro_limit = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, $$RO$$Limit), |
| 1202 | .rw_start = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _DATA$$RW$$Base), |
| 1203 | .rw_limit = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _DATA$$RW$$Limit), |
| 1204 | .zi_start = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _DATA$$ZI$$Base), |
| 1205 | .zi_limit = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _DATA$$ZI$$Limit), |
| 1206 | .stack_bottom = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _STACK$$ZI$$Base), |
| 1207 | .stack_top = PART_REGION_ADDR(TFM_IRQ_TEST_1_LINKER, _STACK$$ZI$$Limit), |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1208 | }, |
| 1209 | #endif /* TFM_ENABLE_IRQ_TEST */ |
| 1210 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 1211 | #ifdef TFM_PARTITION_TEST_SST |
| 1212 | { |
| 1213 | .code_start = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, $$Base), |
| 1214 | .code_limit = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, $$Limit), |
| 1215 | .ro_start = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, $$RO$$Base), |
| 1216 | .ro_limit = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, $$RO$$Limit), |
| 1217 | .rw_start = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _DATA$$RW$$Base), |
| 1218 | .rw_limit = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _DATA$$RW$$Limit), |
| 1219 | .zi_start = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _DATA$$ZI$$Base), |
| 1220 | .zi_limit = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _DATA$$ZI$$Limit), |
| 1221 | .stack_bottom = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _STACK$$ZI$$Base), |
| 1222 | .stack_top = PART_REGION_ADDR(TFM_SP_SST_TEST_LINKER, _STACK$$ZI$$Limit), |
| 1223 | }, |
| 1224 | #endif /* TFM_PARTITION_TEST_SST */ |
| 1225 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 1226 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 1227 | { |
| 1228 | .code_start = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, $$Base), |
| 1229 | .code_limit = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, $$Limit), |
| 1230 | .ro_start = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, $$RO$$Base), |
| 1231 | .ro_limit = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, $$RO$$Limit), |
| 1232 | .rw_start = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$RW$$Base), |
| 1233 | .rw_limit = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$RW$$Limit), |
| 1234 | .zi_start = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$ZI$$Base), |
| 1235 | .zi_limit = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _DATA$$ZI$$Limit), |
| 1236 | .stack_bottom = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _STACK$$ZI$$Base), |
| 1237 | .stack_top = PART_REGION_ADDR(TFM_SP_SECURE_CLIENT_2_LINKER, _STACK$$ZI$$Limit), |
| 1238 | }, |
| 1239 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 1240 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 1241 | #ifdef TFM_MULTI_CORE_TEST |
| 1242 | { |
| 1243 | .code_start = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, $$Base), |
| 1244 | .code_limit = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, $$Limit), |
| 1245 | .ro_start = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, $$RO$$Base), |
| 1246 | .ro_limit = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, $$RO$$Limit), |
| 1247 | .rw_start = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$RW$$Base), |
| 1248 | .rw_limit = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$RW$$Limit), |
| 1249 | .zi_start = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$ZI$$Base), |
| 1250 | .zi_limit = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _DATA$$ZI$$Limit), |
| 1251 | .stack_bottom = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _STACK$$ZI$$Base), |
| 1252 | .stack_top = PART_REGION_ADDR(TFM_SP_MULTI_CORE_TEST_LINKER, _STACK$$ZI$$Limit), |
| 1253 | }, |
| 1254 | #endif /* TFM_MULTI_CORE_TEST */ |
| 1255 | |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1256 | }; |
| 1257 | #endif /* defined(TFM_PSA_API) */ |
| 1258 | |
| 1259 | /**************************************************************************/ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1260 | /** The partition list for the DB */ |
| 1261 | /**************************************************************************/ |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1262 | static struct spm_partition_desc_t partition_list [] = |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1263 | { |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1264 | {{0}}, /* placeholder for Non-secure internal partition */ |
Mingyang Sun | da01a97 | 2019-07-12 17:32:59 +0800 | [diff] [blame] | 1265 | #ifndef TFM_PSA_API |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1266 | {{0}}, /* placeholder for TF-M Core internal partition */ |
| 1267 | #endif |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1268 | |
| 1269 | /* -----------------------------------------------------------------------*/ |
| 1270 | /* - Partition DB record for TFM_SP_STORAGE */ |
| 1271 | /* -----------------------------------------------------------------------*/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1272 | #ifdef TFM_PARTITION_SECURE_STORAGE |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1273 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1274 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1275 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1276 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1277 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1278 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1279 | #endif /* TFM_PARTITION_SECURE_STORAGE */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1280 | |
| 1281 | /* -----------------------------------------------------------------------*/ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1282 | /* - Partition DB record for TFM_SP_ITS */ |
| 1283 | /* -----------------------------------------------------------------------*/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1284 | #ifdef TFM_PARTITION_INTERNAL_TRUSTED_STORAGE |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1285 | { |
| 1286 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1287 | .runtime_data = {0}, |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1288 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1289 | .platform_data_list = NULL, |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1290 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1291 | #endif /* TFM_PARTITION_INTERNAL_TRUSTED_STORAGE */ |
TudorCretu | fb182bc | 2019-07-05 17:34:12 +0100 | [diff] [blame] | 1292 | |
| 1293 | /* -----------------------------------------------------------------------*/ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1294 | /* - Partition DB record for TFM_SP_AUDIT_LOG */ |
| 1295 | /* -----------------------------------------------------------------------*/ |
| 1296 | #ifdef TFM_PARTITION_AUDIT_LOG |
| 1297 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1298 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1299 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1300 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1301 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1302 | }, |
| 1303 | #endif /* TFM_PARTITION_AUDIT_LOG */ |
| 1304 | |
| 1305 | /* -----------------------------------------------------------------------*/ |
| 1306 | /* - Partition DB record for TFM_SP_CRYPTO */ |
| 1307 | /* -----------------------------------------------------------------------*/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1308 | #ifdef TFM_PARTITION_CRYPTO |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1309 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1310 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1311 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1312 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1313 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1314 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1315 | #endif /* TFM_PARTITION_CRYPTO */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1316 | |
| 1317 | /* -----------------------------------------------------------------------*/ |
| 1318 | /* - Partition DB record for TFM_SP_PLATFORM */ |
| 1319 | /* -----------------------------------------------------------------------*/ |
| 1320 | #ifdef TFM_PARTITION_PLATFORM |
| 1321 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1322 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1323 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1324 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1325 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1326 | }, |
| 1327 | #endif /* TFM_PARTITION_PLATFORM */ |
| 1328 | |
| 1329 | /* -----------------------------------------------------------------------*/ |
| 1330 | /* - Partition DB record for TFM_SP_INITIAL_ATTESTATION */ |
| 1331 | /* -----------------------------------------------------------------------*/ |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1332 | #ifdef TFM_PARTITION_INITIAL_ATTESTATION |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1333 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1334 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1335 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1336 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1337 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1338 | }, |
Kevin Peng | c73130f | 2019-10-22 17:27:18 +0800 | [diff] [blame] | 1339 | #endif /* TFM_PARTITION_INITIAL_ATTESTATION */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1340 | |
| 1341 | /* -----------------------------------------------------------------------*/ |
| 1342 | /* - Partition DB record for TFM_SP_CORE_TEST */ |
| 1343 | /* -----------------------------------------------------------------------*/ |
| 1344 | #ifdef TFM_PARTITION_TEST_CORE |
| 1345 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1346 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1347 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1348 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1349 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1350 | }, |
| 1351 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 1352 | |
| 1353 | /* -----------------------------------------------------------------------*/ |
| 1354 | /* - Partition DB record for TFM_SP_CORE_TEST_2 */ |
| 1355 | /* -----------------------------------------------------------------------*/ |
| 1356 | #ifdef TFM_PARTITION_TEST_CORE |
| 1357 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1358 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1359 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1360 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1361 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1362 | }, |
| 1363 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 1364 | |
| 1365 | /* -----------------------------------------------------------------------*/ |
| 1366 | /* - Partition DB record for TFM_SP_SECURE_TEST_PARTITION */ |
| 1367 | /* -----------------------------------------------------------------------*/ |
| 1368 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 1369 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1370 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1371 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1372 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1373 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1374 | }, |
| 1375 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 1376 | |
| 1377 | /* -----------------------------------------------------------------------*/ |
| 1378 | /* - Partition DB record for TFM_SP_IPC_SERVICE_TEST */ |
| 1379 | /* -----------------------------------------------------------------------*/ |
| 1380 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 1381 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1382 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1383 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1384 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1385 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1386 | }, |
| 1387 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 1388 | |
| 1389 | /* -----------------------------------------------------------------------*/ |
| 1390 | /* - Partition DB record for TFM_SP_IPC_CLIENT_TEST */ |
| 1391 | /* -----------------------------------------------------------------------*/ |
| 1392 | #ifdef TFM_PARTITION_TEST_CORE_IPC |
| 1393 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1394 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1395 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1396 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1397 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1398 | }, |
| 1399 | #endif /* TFM_PARTITION_TEST_CORE_IPC */ |
| 1400 | |
| 1401 | /* -----------------------------------------------------------------------*/ |
| 1402 | /* - Partition DB record for TFM_IRQ_TEST_1 */ |
| 1403 | /* -----------------------------------------------------------------------*/ |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 1404 | #ifdef TFM_ENABLE_IRQ_TEST |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1405 | { |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1406 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1407 | .runtime_data = {0}, |
Summer Qin | 423dbef | 2019-08-22 15:59:35 +0800 | [diff] [blame] | 1408 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1409 | .platform_data_list = NULL, |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1410 | }, |
David Hu | 33f2fd2 | 2019-08-16 15:32:39 +0800 | [diff] [blame] | 1411 | #endif /* TFM_ENABLE_IRQ_TEST */ |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1412 | |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 1413 | /* -----------------------------------------------------------------------*/ |
| 1414 | /* - Partition DB record for TFM_SP_SST_TEST */ |
| 1415 | /* -----------------------------------------------------------------------*/ |
| 1416 | #ifdef TFM_PARTITION_TEST_SST |
| 1417 | { |
| 1418 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1419 | .runtime_data = {0}, |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 1420 | .static_data = NULL, |
Mate Toth-Pal | 8ac98a7 | 2019-11-21 17:30:10 +0100 | [diff] [blame] | 1421 | .platform_data_list = NULL, |
Jamie Fox | 0e823a0 | 2019-10-28 17:28:19 +0000 | [diff] [blame] | 1422 | }, |
| 1423 | #endif /* TFM_PARTITION_TEST_SST */ |
| 1424 | |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 1425 | /* -----------------------------------------------------------------------*/ |
| 1426 | /* - Partition DB record for TFM_SP_SECURE_CLIENT_2 */ |
| 1427 | /* -----------------------------------------------------------------------*/ |
| 1428 | #ifdef TFM_PARTITION_TEST_SECURE_SERVICES |
| 1429 | { |
| 1430 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1431 | .runtime_data = {0}, |
Jamie Fox | 830ff76 | 2019-12-16 15:20:22 +0000 | [diff] [blame] | 1432 | .static_data = NULL, |
| 1433 | .platform_data_list = NULL, |
| 1434 | }, |
| 1435 | #endif /* TFM_PARTITION_TEST_SECURE_SERVICES */ |
| 1436 | |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 1437 | /* -----------------------------------------------------------------------*/ |
| 1438 | /* - Partition DB record for TFM_SP_MULTI_CORE_TEST */ |
| 1439 | /* -----------------------------------------------------------------------*/ |
| 1440 | #ifdef TFM_MULTI_CORE_TEST |
| 1441 | { |
| 1442 | /* Runtime data */ |
TTornblom | 83d9637 | 2019-11-19 12:53:16 +0100 | [diff] [blame] | 1443 | .runtime_data = {0}, |
David Hu | 240f58e | 2019-10-10 10:55:07 +0800 | [diff] [blame] | 1444 | .static_data = NULL, |
| 1445 | .platform_data_list = NULL, |
| 1446 | }, |
| 1447 | #endif /* TFM_MULTI_CORE_TEST */ |
| 1448 | |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1449 | }; |
| 1450 | |
| 1451 | struct spm_partition_db_t g_spm_partition_db = { |
| 1452 | .is_init = 0, |
| 1453 | .partition_count = sizeof(partition_list) / sizeof(partition_list[0]), |
Edison Ai | 66fbdf1 | 2019-07-08 16:05:07 +0800 | [diff] [blame] | 1454 | #ifndef TFM_PSA_API |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1455 | .running_partition_idx = 0, |
Edison Ai | 66fbdf1 | 2019-07-08 16:05:07 +0800 | [diff] [blame] | 1456 | #endif |
Mate Toth-Pal | 3ad2e3e | 2019-07-11 21:43:37 +0200 | [diff] [blame] | 1457 | .partitions = partition_list, |
| 1458 | }; |
| 1459 | |
| 1460 | #endif /* __TFM_SPM_DB_INC__ */ |