Antonio Nino Diaz | 7e1e5e8 | 2018-12-05 14:38:15 +0000 | [diff] [blame] | 1 | /* |
Olivier Deprez | 231115d | 2020-02-03 11:27:01 +0100 | [diff] [blame] | 2 | * Copyright (c) 2018-2020, Arm Limited. All rights reserved. |
Antonio Nino Diaz | 7e1e5e8 | 2018-12-05 14:38:15 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef CACTUS_DEF_H |
| 8 | #define CACTUS_DEF_H |
| 9 | |
| 10 | #include <utils_def.h> |
| 11 | |
| 12 | /* |
| 13 | * Layout of the Secure Partition image. |
| 14 | */ |
| 15 | |
| 16 | /* Up to 2 MiB at an arbitrary address that doesn't overlap the devices. */ |
Olivier Deprez | 231115d | 2020-02-03 11:27:01 +0100 | [diff] [blame] | 17 | #define CACTUS_IMAGE_BASE ULL(0x1000) |
Antonio Nino Diaz | 7e1e5e8 | 2018-12-05 14:38:15 +0000 | [diff] [blame] | 18 | #define CACTUS_IMAGE_SIZE ULL(0x200000) |
| 19 | |
Antonio Nino Diaz | 54287c8 | 2018-12-05 15:37:33 +0000 | [diff] [blame] | 20 | /* Memory reserved for stacks */ |
| 21 | #define CACTUS_STACKS_SIZE ULL(0x1000) |
| 22 | |
Antonio Nino Diaz | 7e1e5e8 | 2018-12-05 14:38:15 +0000 | [diff] [blame] | 23 | /* Memory shared between EL3 and S-EL0 (64 KiB). */ |
| 24 | #define CACTUS_SPM_BUF_BASE (CACTUS_IMAGE_BASE + CACTUS_IMAGE_SIZE) |
| 25 | #define CACTUS_SPM_BUF_SIZE ULL(0x10000) |
| 26 | |
| 27 | /* Memory shared between Normal world and S-EL0 (64 KiB). */ |
| 28 | #define CACTUS_NS_BUF_BASE (CACTUS_SPM_BUF_BASE + CACTUS_SPM_BUF_SIZE) |
| 29 | #define CACTUS_NS_BUF_SIZE ULL(0x10000) |
| 30 | |
| 31 | /* Memory area used by tests (128 KiB). */ |
| 32 | #define CACTUS_TEST_MEM_BASE (CACTUS_NS_BUF_BASE + CACTUS_NS_BUF_SIZE) |
| 33 | #define CACTUS_TEST_MEM_SIZE ULL(0x20000) |
| 34 | |
Antonio Nino Diaz | 7e1e5e8 | 2018-12-05 14:38:15 +0000 | [diff] [blame] | 35 | #endif /* CACTUS_DEF_H */ |