feat: consume spmc manifest ns memory nodes
The SPMC manifest provisions for NS memory ranges. The SPMC is aware
about the platform specific NS memory that a normal world client is able
to share/lend/donate. Similarly, it provides information about which NS
memory regions a SP is allowed to map in its SP manifest.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I3f1545f79ce36e544387c707c7e024fef67f0286
diff --git a/src/boot_flow/common.c b/src/boot_flow/common.c
index 20b5deb..3e93c33 100644
--- a/src/boot_flow/common.c
+++ b/src/boot_flow/common.c
@@ -17,6 +17,7 @@
bool boot_flow_get_params(struct boot_params *p, const struct fdt *fdt)
{
struct string memory = STRING_INIT("memory");
+ struct string ns_memory = STRING_INIT("ns-memory");
struct string device_memory = STRING_INIT("device-memory");
p->mem_ranges_count = 0;
@@ -29,7 +30,9 @@
&p->mem_ranges_count, MAX_MEM_RANGES) &&
fdt_find_memory_ranges(fdt, &device_memory, p->device_mem_ranges,
&p->device_mem_ranges_count,
- MAX_DEVICE_MEM_RANGES);
+ MAX_DEVICE_MEM_RANGES) &&
+ fdt_find_memory_ranges(fdt, &ns_memory, p->ns_mem_ranges,
+ &p->ns_mem_ranges_count, MAX_MEM_RANGES);
}
/**