Skip to content

Commit 0130138

Browse files
author
Oren Cohen
committed
Run SPM code generator
1 parent 45bd4f3 commit 0130138

File tree

8 files changed

+97
-12
lines changed

8 files changed

+97
-12
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/* Copyright (c) 2017-2018 ARM Limited
2+
*
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/***********************************************************************************************************************
19+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20+
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
21+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
24+
**********************************************************************************************************************/
25+
26+
#include "spm_panic.h"
27+
#include "spm_internal.h"
28+
#include "handles_manager.h"
29+
#include "cmsis.h"
30+
#include "psa_psa_f_partition.h"
31+
#include "psa_its_partition.h"
32+
33+
extern const uint32_t psa_f_external_sids[4];
34+
35+
spm_partition_t g_partitions[2] = {
36+
{
37+
.partition_id = PSA_F_ID,
38+
.thread_id = 0,
39+
.flags_rot_srv = PSA_F_WAIT_ANY_SID_MSK,
40+
.flags_interrupts = 0,
41+
.rot_services = NULL,
42+
.rot_services_count = PSA_F_ROT_SRV_COUNT,
43+
.extern_sids = psa_f_external_sids,
44+
.extern_sids_count = PSA_F_EXT_ROT_SRV_COUNT,
45+
.irq_mapper = NULL,
46+
},
47+
{
48+
.partition_id = ITS_ID,
49+
.thread_id = 0,
50+
.flags_rot_srv = ITS_WAIT_ANY_SID_MSK,
51+
.flags_interrupts = 0,
52+
.rot_services = NULL,
53+
.rot_services_count = ITS_ROT_SRV_COUNT,
54+
.extern_sids = NULL,
55+
.extern_sids_count = ITS_EXT_ROT_SRV_COUNT,
56+
.irq_mapper = NULL,
57+
},
58+
};
59+
60+
/* Check all the defined memory regions for overlapping. */
61+
62+
/* A list of all the memory regions. */
63+
const mem_region_t *mem_regions = NULL;
64+
65+
const uint32_t mem_region_count = 0;
66+
67+
// forward declaration of partition initializers
68+
void psa_f_init(spm_partition_t *partition);
69+
void its_init(spm_partition_t *partition);
70+
71+
uint32_t init_partitions(spm_partition_t **partitions)
72+
{
73+
if (NULL == partitions) {
74+
SPM_PANIC("partitions is NULL!\n");
75+
}
76+
77+
psa_f_init(&(g_partitions[0]));
78+
its_init(&(g_partitions[1]));
79+
80+
*partitions = g_partitions;
81+
return 2;
82+
}
83+

TESTS/psa/entropy_inject/COMPONENT_SPE/psa_setup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#include "spm_panic.h"

TESTS/psa/entropy_inject/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#include "cmsis.h"

TESTS/psa/entropy_inject/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#ifndef PSA_TEST_ITS_RESET_PARTITION_H
@@ -44,11 +46,5 @@
4446
#define TEST_ITS_RESET_WAIT_ANY_SID_MSK (\
4547
TEST_PSA_ITS_RESET_MSK)
4648

47-
/*
48-
#define TEST_ITS_RESET_WAIT_ANY_MSK (\
49-
TEST_ITS_RESET_WAIT_ANY_SID_MSK) | \
50-
PSA_DOORBELL)
51-
*/
52-
5349

5450
#endif // PSA_TEST_ITS_RESET_PARTITION_H

TESTS/psa/entropy_inject/its_reset/psa_test_its_reset_ifs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#ifndef PSA_TEST_ITS_RESET_PARTITION_ROT_SERVICES_H

components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_psa_f_partition.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#include "cmsis.h"

components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_psa_f_partition.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#ifndef PSA_PSA_F_PARTITION_H
@@ -74,11 +76,5 @@
7476
PSA_GENERATOR | \
7577
PSA_ENTROPY_INJECT)
7678

77-
/*
78-
#define PSA_F_WAIT_ANY_MSK (\
79-
PSA_F_WAIT_ANY_SID_MSK) | \
80-
PSA_DOORBELL)
81-
*/
82-
8379

8480
#endif // PSA_PSA_F_PARTITION_H

components/TARGET_PSA/services/crypto/psa_psa_f_ifs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020
* THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
2121
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22+
* Template Version 1.0
23+
* Generated by tools/spm/generate_partition_code.py Version 1.0
2224
**********************************************************************************************************************/
2325

2426
#ifndef PSA_PSA_F_PARTITION_ROT_SERVICES_H

0 commit comments

Comments
 (0)