blob: 85ab1eca6e4c17b3174310e69a1abb334e62c1f3 [file] [log] [blame]
Mate Toth-Pal52674ab2018-02-26 09:47:56 +01001/*
2 * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __SPM_PARTITION_DEFS_H__
9#define __SPM_PARTITION_DEFS_H__
10
11/* FixMe: allocations to be settled.
12 * 8 bits reserved by TFM for secure partition Id in this prototype
13 */
14#define TFM_SP_BASE 256
15
16/* A reserved partition ID that is used for uninitialised data */
17#define INVALID_PARTITION_ID (~0U)
18
19/* ***** partition ID-s internal to the TFM ***** */
Miklos Balintd306ab12018-05-18 16:58:18 +020020#define TFM_INTERNAL_PARTITIONS (2)
21
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010022/* From the SPM point of view the non secure processing environment is handled
23 * as a special secure partition. This simplifies the context switch
24 * operations.
25 */
26#define TFM_SP_NON_SECURE_ID (0)
27/* A dummy partition for TFM_SP_CORE is created to handle secure partition
28 * calls done directly from the core, before NS execution started.
29 */
30#define TFM_SP_CORE_ID (1)
31
Miklos Balintd306ab12018-05-18 16:58:18 +020032#include "secure_fw/services/tfm_partition_defs.inc"
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010033
Miklos Balintd306ab12018-05-18 16:58:18 +020034/* This limit is only used to define the size of the database reserved for
35 * partitions. There's no requirement that it match the number of partitions
36 * that get registered in a specific build
37 */
38#define SPM_MAX_PARTITIONS (TFM_MAX_USER_PARTITIONS + TFM_INTERNAL_PARTITIONS)
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010039
40#endif /* __SPM_PARTITION_DEFS_H__ */