1 /*
2  * Copyright (c) 2016-2022 Arm Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __REGION_DEFS_H__
18 #define __REGION_DEFS_H__
19 
20 #include "region_limits.h"
21 
22 /* **************************************************************
23  * WARNING: this file is parsed both by the C/C++ compiler
24  * and the linker. As a result the syntax must be valid not only
25  * for C/C++ but for the linker scripts too.
26  * Beware of the following limitations:
27  *   - LD (GCC linker) requires white space around operators.
28  *   - UL postfix for macros is not suported by the linker script
29  ****************************************************************/
30 
31 /* Secure regions */
32 #define S_CODE_START     ( S_ROM_ALIAS )
33 #define S_CODE_SIZE      ( TOTAL_S_ROM_SIZE )
34 #define S_CODE_LIMIT     ( S_CODE_START + S_CODE_SIZE )
35 
36 #define S_DATA_START     ( S_RAM_ALIAS )
37 #define S_DATA_SIZE      ( TOTAL_S_RAM_SIZE )
38 #define S_DATA_LIMIT     ( S_DATA_START + S_DATA_SIZE )
39 
40 #define S_DDR4_START     ( S_DDR4_ALIAS )
41 #define S_DDR4_SIZE      ( TOTAL_S_DDR4_SIZE )
42 #define S_DDR4_LIMIT     ( S_DDR4_START + S_DDR4_SIZE )
43 
44 #endif /* __REGION_DEFS_H__ */
45