File tree Expand file tree Collapse file tree 7 files changed +17
-5
lines changed
TARGET_MBED_SPM/COMPONENT_SPE Expand file tree Collapse file tree 7 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 33
33
#include "psa_its_partition.h"
34
34
35
35
extern const uint32_t crypto_srv_external_sids [4 ];
36
+ extern const uint32_t platform_external_sids [1 ];
36
37
37
38
spm_partition_t g_partitions [4 ] = {
38
39
{
@@ -64,7 +65,7 @@ spm_partition_t g_partitions[4] = {
64
65
.flags_interrupts = 0 ,
65
66
.rot_services = NULL ,
66
67
.rot_services_count = PLATFORM_ROT_SRV_COUNT ,
67
- .extern_sids = NULL ,
68
+ .extern_sids = platform_external_sids ,
68
69
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT ,
69
70
.irq_mapper = NULL ,
70
71
},
Original file line number Diff line number Diff line change 35
35
36
36
extern const uint32_t server_test_part1_external_sids [2 ];
37
37
extern const uint32_t crypto_srv_external_sids [4 ];
38
+ extern const uint32_t platform_external_sids [1 ];
38
39
39
40
spm_partition_t g_partitions [5 ] = {
40
41
{
@@ -77,7 +78,7 @@ spm_partition_t g_partitions[5] = {
77
78
.flags_interrupts = 0 ,
78
79
.rot_services = NULL ,
79
80
.rot_services_count = PLATFORM_ROT_SRV_COUNT ,
80
- .extern_sids = NULL ,
81
+ .extern_sids = platform_external_sids ,
81
82
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT ,
82
83
.irq_mapper = NULL ,
83
84
},
Original file line number Diff line number Diff line change 33
33
#include "psa_its_partition.h"
34
34
35
35
extern const uint32_t crypto_srv_external_sids [4 ];
36
+ extern const uint32_t platform_external_sids [1 ];
36
37
37
38
spm_partition_t g_partitions [4 ] = {
38
39
{
@@ -64,7 +65,7 @@ spm_partition_t g_partitions[4] = {
64
65
.flags_interrupts = 0 ,
65
66
.rot_services = NULL ,
66
67
.rot_services_count = PLATFORM_ROT_SRV_COUNT ,
67
- .extern_sids = NULL ,
68
+ .extern_sids = platform_external_sids ,
68
69
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT ,
69
70
.irq_mapper = NULL ,
70
71
},
Original file line number Diff line number Diff line change 32
32
#include "psa_its_partition.h"
33
33
34
34
extern const uint32_t crypto_srv_external_sids [4 ];
35
+ extern const uint32_t platform_external_sids [1 ];
35
36
36
37
__attribute__((weak ))
37
38
spm_partition_t g_partitions [3 ] = {
@@ -53,7 +54,7 @@ spm_partition_t g_partitions[3] = {
53
54
.flags_interrupts = 0 ,
54
55
.rot_services = NULL ,
55
56
.rot_services_count = PLATFORM_ROT_SRV_COUNT ,
56
- .extern_sids = NULL ,
57
+ .extern_sids = platform_external_sids ,
57
58
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT ,
58
59
.irq_mapper = NULL ,
59
60
},
Original file line number Diff line number Diff line change 30
30
#include "spm_internal.h"
31
31
#include "psa_platform_partition.h"
32
32
#include "psa_platform_ifs.h"
33
+ #include "psa_its_ifs.h"
33
34
34
35
35
36
/* Threads stacks */
@@ -78,6 +79,10 @@ spm_rot_service_t platform_rot_services[PLATFORM_ROT_SRV_COUNT] = {
78
79
},
79
80
};
80
81
82
+ /* External SIDs used by PLATFORM */
83
+ const uint32_t platform_external_sids [1 ] = {
84
+ PSA_ITS_RESET ,
85
+ };
81
86
82
87
static osRtxMutex_t platform_mutex = {0 };
83
88
static const osMutexAttr_t platform_mutex_attr = {
Original file line number Diff line number Diff line change 29
29
#define PLATFORM_ID 8
30
30
31
31
#define PLATFORM_ROT_SRV_COUNT (2UL)
32
- #define PLATFORM_EXT_ROT_SRV_COUNT (0UL )
32
+ #define PLATFORM_EXT_ROT_SRV_COUNT (1UL )
33
33
34
34
/* PLATFORM event flags */
35
35
#define PLATFORM_RESERVED1_POS (1UL)
Original file line number Diff line number Diff line change 23
23
"minor_policy" : " RELAXED"
24
24
}
25
25
],
26
+ "extern_sids" : [
27
+ " PSA_ITS_RESET"
28
+ ],
26
29
"source_files" : [
27
30
" COMPONENT_SPE/platform_partition.c"
28
31
]
You can’t perform that action at this time.
0 commit comments