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