Skip to content

Commit 3c0c575

Browse files
author
Michael Schwarcz
committed
Regenerate mbed-spm files
1 parent f8d254f commit 3c0c575

File tree

1 file changed

+20
-5
lines changed
  • TESTS/psa/crypto_access_control/COMPONENT_SPE

1 file changed

+20
-5
lines changed

TESTS/psa/crypto_access_control/COMPONENT_SPE/psa_setup.c

Lines changed: 20 additions & 5 deletions
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -28,15 +28,17 @@
28
#include "handles_manager.h"
28
#include "handles_manager.h"
29
#include "cmsis.h"
29
#include "cmsis.h"
30
#include "psa_test_partition_partition.h"
30
#include "psa_test_partition_partition.h"
31+
#include "psa_attest_srv_partition.h"
31
#include "psa_crypto_srv_partition.h"
32
#include "psa_crypto_srv_partition.h"
32
#include "psa_platform_partition.h"
33
#include "psa_platform_partition.h"
33
#include "psa_its_partition.h"
34
#include "psa_its_partition.h"
34

35

35
extern const uint32_t test_partition_external_sids[1];
36
extern const uint32_t test_partition_external_sids[1];
37+
extern const uint32_t attest_srv_external_sids[7];
36
extern const uint32_t crypto_srv_external_sids[4];
38
extern const uint32_t crypto_srv_external_sids[4];
37
extern const uint32_t platform_external_sids[1];
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
.partition_id = TEST_PARTITION_ID,
43
.partition_id = TEST_PARTITION_ID,
42
.thread_id = 0,
44
.thread_id = 0,
@@ -48,6 +50,17 @@ spm_partition_t g_partitions[4] = {
48
.extern_sids_count = TEST_PARTITION_EXT_ROT_SRV_COUNT,
50
.extern_sids_count = TEST_PARTITION_EXT_ROT_SRV_COUNT,
49
.irq_mapper = NULL,
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
.partition_id = CRYPTO_SRV_ID,
65
.partition_id = CRYPTO_SRV_ID,
53
.thread_id = 0,
66
.thread_id = 0,
@@ -92,6 +105,7 @@ const uint32_t mem_region_count = 0;
92

105

93
// forward declaration of partition initializers
106
// forward declaration of partition initializers
94
void test_partition_init(spm_partition_t *partition);
107
void test_partition_init(spm_partition_t *partition);
108+
void attest_srv_init(spm_partition_t *partition);
95
void crypto_srv_init(spm_partition_t *partition);
109
void crypto_srv_init(spm_partition_t *partition);
96
void platform_init(spm_partition_t *partition);
110
void platform_init(spm_partition_t *partition);
97
void its_init(spm_partition_t *partition);
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
test_partition_init(&(g_partitions[0]));
119
test_partition_init(&(g_partitions[0]));
106-
crypto_srv_init(&(g_partitions[1]));
120+
attest_srv_init(&(g_partitions[1]));
107-
platform_init(&(g_partitions[2]));
121+
crypto_srv_init(&(g_partitions[2]));
108-
its_init(&(g_partitions[3]));
122+
platform_init(&(g_partitions[3]));
123+
its_init(&(g_partitions[4]));
109

124

110
*partitions = g_partitions;
125
*partitions = g_partitions;
111-
return 4;
126+
return 5;
112
}
127
}
113

128

0 commit comments

Comments
 (0)