28
28
#include "handles_manager.h"
29
29
#include "cmsis.h"
30
30
#include "psa_test_partition_partition.h"
31
+ #include "psa_attest_srv_partition.h"
31
32
#include "psa_crypto_srv_partition.h"
32
33
#include "psa_platform_partition.h"
33
34
#include "psa_its_partition.h"
34
35
35
36
extern const uint32_t test_partition_external_sids [1 ];
37
+ extern const uint32_t attest_srv_external_sids [7 ];
36
38
extern const uint32_t crypto_srv_external_sids [4 ];
37
39
extern const uint32_t platform_external_sids [1 ];
38
40
39
- spm_partition_t g_partitions [4 ] = {
41
+ spm_partition_t g_partitions [5 ] = {
40
42
{
41
43
.partition_id = TEST_PARTITION_ID ,
42
44
.thread_id = 0 ,
@@ -48,6 +50,17 @@ spm_partition_t g_partitions[4] = {
48
50
.extern_sids_count = TEST_PARTITION_EXT_ROT_SRV_COUNT ,
49
51
.irq_mapper = NULL ,
50
52
},
53
+ {
54
+ .partition_id = ATTEST_SRV_ID ,
55
+ .thread_id = 0 ,
56
+ .flags_rot_srv = ATTEST_SRV_WAIT_ANY_SID_MSK ,
57
+ .flags_interrupts = 0 ,
58
+ .rot_services = NULL ,
59
+ .rot_services_count = ATTEST_SRV_ROT_SRV_COUNT ,
60
+ .extern_sids = attest_srv_external_sids ,
61
+ .extern_sids_count = ATTEST_SRV_EXT_ROT_SRV_COUNT ,
62
+ .irq_mapper = NULL ,
63
+ },
51
64
{
52
65
.partition_id = CRYPTO_SRV_ID ,
53
66
.thread_id = 0 ,
@@ -92,6 +105,7 @@ const uint32_t mem_region_count = 0;
92
105
93
106
// forward declaration of partition initializers
94
107
void test_partition_init (spm_partition_t * partition );
108
+ void attest_srv_init (spm_partition_t * partition );
95
109
void crypto_srv_init (spm_partition_t * partition );
96
110
void platform_init (spm_partition_t * partition );
97
111
void its_init (spm_partition_t * partition );
@@ -103,11 +117,12 @@ uint32_t init_partitions(spm_partition_t **partitions)
103
117
}
104
118
105
119
test_partition_init (& (g_partitions [0 ]));
106
- crypto_srv_init (& (g_partitions [1 ]));
107
- platform_init (& (g_partitions [2 ]));
108
- its_init (& (g_partitions [3 ]));
120
+ attest_srv_init (& (g_partitions [1 ]));
121
+ crypto_srv_init (& (g_partitions [2 ]));
122
+ platform_init (& (g_partitions [3 ]));
123
+ its_init (& (g_partitions [4 ]));
109
124
110
125
* partitions = g_partitions ;
111
- return 4 ;
126
+ return 5 ;
112
127
}
113
128
0 commit comments