diff options
Diffstat (limited to 'plat/arm/corstone1000/corstone1000_mem_prot.c')
-rw-r--r-- | plat/arm/corstone1000/corstone1000_mem_prot.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plat/arm/corstone1000/corstone1000_mem_prot.c b/plat/arm/corstone1000/corstone1000_mem_prot.c new file mode 100644 index 000000000..8e4a27027 --- /dev/null +++ b/plat/arm/corstone1000/corstone1000_mem_prot.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2022, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <platform.h> +#include <psci.h> +#include <utils_def.h> +#include <xlat_tables_v2.h> + +#define NS_IMAGE_OFFSET TFTF_BASE +#define NS_IMAGE_LIMIT (NS_IMAGE_OFFSET + (32 << TWO_MB_SHIFT)) + +static const mem_region_t corstone1000_ram_ranges[] = { + {NS_IMAGE_LIMIT, 128 << TWO_MB_SHIFT}, +}; + +const mem_region_t *plat_get_prot_regions(int *nelem) +{ + *nelem = ARRAY_SIZE(corstone1000_ram_ranges); + return corstone1000_ram_ranges; +} |