File tree Expand file tree Collapse file tree 8 files changed +25
-6
lines changed
prot_internal_storage/COMPONENT_SPE Expand file tree Collapse file tree 8 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 29
29
#include "psa_its_partition.h"
30
30
#include "psa_psa_f_partition.h"
31
31
32
+ extern const uint32_t psa_f_external_sids [4 ];
32
33
33
34
spm_partition_t g_partitions [3 ] = {
34
35
{
@@ -60,7 +61,7 @@ spm_partition_t g_partitions[3] = {
60
61
.flags_interrupts = 0 ,
61
62
.rot_services = NULL ,
62
63
.rot_services_count = PSA_F_ROT_SRV_COUNT ,
63
- .extern_sids = NULL ,
64
+ .extern_sids = psa_f_external_sids ,
64
65
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT ,
65
66
.irq_mapper = NULL ,
66
67
},
Original file line number Diff line number Diff line change 29
29
#include "psa_its_partition.h"
30
30
#include "psa_psa_f_partition.h"
31
31
32
+ extern const uint32_t psa_f_external_sids [4 ];
32
33
33
34
spm_partition_t g_partitions [3 ] = {
34
35
{
@@ -60,7 +61,7 @@ spm_partition_t g_partitions[3] = {
60
61
.flags_interrupts = 0 ,
61
62
.rot_services = NULL ,
62
63
.rot_services_count = PSA_F_ROT_SRV_COUNT ,
63
- .extern_sids = NULL ,
64
+ .extern_sids = psa_f_external_sids ,
64
65
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT ,
65
66
.irq_mapper = NULL ,
66
67
},
Original file line number Diff line number Diff line change 31
31
#include "psa_psa_f_partition.h"
32
32
33
33
extern const uint32_t server_test_part1_external_sids [2 ];
34
+ extern const uint32_t psa_f_external_sids [4 ];
34
35
35
36
spm_partition_t g_partitions [4 ] = {
36
37
{
@@ -73,7 +74,7 @@ spm_partition_t g_partitions[4] = {
73
74
.flags_interrupts = 0 ,
74
75
.rot_services = NULL ,
75
76
.rot_services_count = PSA_F_ROT_SRV_COUNT ,
76
- .extern_sids = NULL ,
77
+ .extern_sids = psa_f_external_sids ,
77
78
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT ,
78
79
.irq_mapper = NULL ,
79
80
},
Original file line number Diff line number Diff line change 29
29
#include "psa_its_partition.h"
30
30
#include "psa_psa_f_partition.h"
31
31
32
+ extern const uint32_t psa_f_external_sids [4 ];
32
33
33
34
spm_partition_t g_partitions [3 ] = {
34
35
{
@@ -60,7 +61,7 @@ spm_partition_t g_partitions[3] = {
60
61
.flags_interrupts = 0 ,
61
62
.rot_services = NULL ,
62
63
.rot_services_count = PSA_F_ROT_SRV_COUNT ,
63
- .extern_sids = NULL ,
64
+ .extern_sids = psa_f_external_sids ,
64
65
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT ,
65
66
.irq_mapper = NULL ,
66
67
},
Original file line number Diff line number Diff line change 28
28
#include "spm_internal.h"
29
29
#include "psa_psa_f_partition.h"
30
30
#include "psa_psa_f_ifs.h"
31
+ #include "psa_its_ifs.h"
31
32
32
33
33
34
/* Threads stacks */
@@ -184,6 +185,13 @@ spm_rot_service_t psa_f_rot_services[PSA_F_ROT_SRV_COUNT] = {
184
185
},
185
186
};
186
187
188
+ /* External SIDs used by PSA_F */
189
+ const uint32_t psa_f_external_sids [4 ] = {
190
+ PSA_ITS_GET ,
191
+ PSA_ITS_SET ,
192
+ PSA_ITS_INFO ,
193
+ PSA_ITS_REMOVE ,
194
+ };
187
195
188
196
static osRtxMutex_t psa_f_mutex = {0 };
189
197
static const osMutexAttr_t psa_f_mutex_attr = {
Original file line number Diff line number Diff line change 27
27
#define PSA_F_ID 35
28
28
29
29
#define PSA_F_ROT_SRV_COUNT (11UL)
30
- #define PSA_F_EXT_ROT_SRV_COUNT (0UL )
30
+ #define PSA_F_EXT_ROT_SRV_COUNT (4UL )
31
31
32
32
/* PSA_F event flags */
33
33
#define PSA_F_RESERVED1_POS (1UL)
Original file line number Diff line number Diff line change 96
96
"minor_policy" : " STRICT"
97
97
}
98
98
],
99
+ "extern_sids" : [
100
+ " PSA_ITS_GET" ,
101
+ " PSA_ITS_SET" ,
102
+ " PSA_ITS_INFO" ,
103
+ " PSA_ITS_REMOVE"
104
+ ],
99
105
"source_files" : [
100
106
" COMPONENT_SPE/psa_crypto_partition.c"
101
107
]
Original file line number Diff line number Diff line change 28
28
#include "psa_its_partition.h"
29
29
#include "psa_psa_f_partition.h"
30
30
31
+ extern const uint32_t psa_f_external_sids [4 ];
31
32
32
33
__attribute__((weak ))
33
34
spm_partition_t g_partitions [2 ] = {
@@ -49,7 +50,7 @@ spm_partition_t g_partitions[2] = {
49
50
.flags_interrupts = 0 ,
50
51
.rot_services = NULL ,
51
52
.rot_services_count = PSA_F_ROT_SRV_COUNT ,
52
- .extern_sids = NULL ,
53
+ .extern_sids = psa_f_external_sids ,
53
54
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT ,
54
55
.irq_mapper = NULL ,
55
56
},
You can’t perform that action at this time.
0 commit comments