Skip to content

Commit 704a1cb

Browse files
author
Cruz Monrreal
authored
Merge pull request #9702 from kfnta/psa_fix_partition_dpendecies
Fix dependencies of platform partition
2 parents 1b233c5 + 45c44eb commit 704a1cb

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed

TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "psa_its_partition.h"
3434

3535
extern const uint32_t crypto_srv_external_sids[4];
36+
extern const uint32_t platform_external_sids[1];
3637

3738
spm_partition_t g_partitions[4] = {
3839
{
@@ -64,7 +65,7 @@ spm_partition_t g_partitions[4] = {
6465
.flags_interrupts = 0,
6566
.rot_services = NULL,
6667
.rot_services_count = PLATFORM_ROT_SRV_COUNT,
67-
.extern_sids = NULL,
68+
.extern_sids = platform_external_sids,
6869
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT,
6970
.irq_mapper = NULL,
7071
},

TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
extern const uint32_t server_test_part1_external_sids[2];
3737
extern const uint32_t crypto_srv_external_sids[4];
38+
extern const uint32_t platform_external_sids[1];
3839

3940
spm_partition_t g_partitions[5] = {
4041
{
@@ -77,7 +78,7 @@ spm_partition_t g_partitions[5] = {
7778
.flags_interrupts = 0,
7879
.rot_services = NULL,
7980
.rot_services_count = PLATFORM_ROT_SRV_COUNT,
80-
.extern_sids = NULL,
81+
.extern_sids = platform_external_sids,
8182
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT,
8283
.irq_mapper = NULL,
8384
},

TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "psa_its_partition.h"
3434

3535
extern const uint32_t crypto_srv_external_sids[4];
36+
extern const uint32_t platform_external_sids[1];
3637

3738
spm_partition_t g_partitions[4] = {
3839
{
@@ -64,7 +65,7 @@ spm_partition_t g_partitions[4] = {
6465
.flags_interrupts = 0,
6566
.rot_services = NULL,
6667
.rot_services_count = PLATFORM_ROT_SRV_COUNT,
67-
.extern_sids = NULL,
68+
.extern_sids = platform_external_sids,
6869
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT,
6970
.irq_mapper = NULL,
7071
},

components/TARGET_PSA/TARGET_MBED_SPM/COMPONENT_SPE/psa_setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "psa_its_partition.h"
3333

3434
extern const uint32_t crypto_srv_external_sids[4];
35+
extern const uint32_t platform_external_sids[1];
3536

3637
__attribute__((weak))
3738
spm_partition_t g_partitions[3] = {
@@ -53,7 +54,7 @@ spm_partition_t g_partitions[3] = {
5354
.flags_interrupts = 0,
5455
.rot_services = NULL,
5556
.rot_services_count = PLATFORM_ROT_SRV_COUNT,
56-
.extern_sids = NULL,
57+
.extern_sids = platform_external_sids,
5758
.extern_sids_count = PLATFORM_EXT_ROT_SRV_COUNT,
5859
.irq_mapper = NULL,
5960
},

components/TARGET_PSA/services/platform/COMPONENT_SPE/TARGET_MBED_SPM/psa_platform_partition.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "spm_internal.h"
3131
#include "psa_platform_partition.h"
3232
#include "psa_platform_ifs.h"
33+
#include "psa_its_ifs.h"
3334

3435

3536
/* Threads stacks */
@@ -78,6 +79,10 @@ spm_rot_service_t platform_rot_services[PLATFORM_ROT_SRV_COUNT] = {
7879
},
7980
};
8081

82+
/* External SIDs used by PLATFORM */
83+
const uint32_t platform_external_sids[1] = {
84+
PSA_ITS_RESET,
85+
};
8186

8287
static osRtxMutex_t platform_mutex = {0};
8388
static const osMutexAttr_t platform_mutex_attr = {

components/TARGET_PSA/services/platform/COMPONENT_SPE/psa_platform_partition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define PLATFORM_ID 8
3030

3131
#define PLATFORM_ROT_SRV_COUNT (2UL)
32-
#define PLATFORM_EXT_ROT_SRV_COUNT (0UL)
32+
#define PLATFORM_EXT_ROT_SRV_COUNT (1UL)
3333

3434
/* PLATFORM event flags */
3535
#define PLATFORM_RESERVED1_POS (1UL)

components/TARGET_PSA/services/platform/platform_psa.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"minor_policy": "RELAXED"
2424
}
2525
],
26+
"extern_sids": [
27+
"PSA_ITS_RESET"
28+
],
2629
"source_files": [
2730
"COMPONENT_SPE/platform_partition.c"
2831
]

0 commit comments

Comments
 (0)