summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorEtienne Carriere <[email protected]>2020-09-10 10:49:59 +0200
committerSimon Glass <[email protected]>2020-09-22 12:54:13 -0600
commitccaa5747bdeae4261199dd7e80771e4de1c550ca (patch)
treeab94e7a90a9402304aa0c5d0377992e74186ce4b /arch
parent68de0679c940276b97c31b809168052f9d905505 (diff)
fdtdec: optionally add property no-map to created reserved memory node
Add boolean input argument @no_map to helper function fdtdec_add_reserved_memory() to add or not "no-map" property for an added reserved memory node. Property no-map is used by the Linux kernel to not not map memory in its static memory mapping. It is needed for example for the| consistency of system non-cached memory and to prevent speculative accesses to some firewalled memory. No functional change. A later change will update to OPTEE library to add no-map property to OP-TEE reserved memory nodes. Signed-off-by: Etienne Carriere <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/lib/fdt_fixup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c
index 5b2420243fc..d02062fd5bd 100644
--- a/arch/riscv/lib/fdt_fixup.c
+++ b/arch/riscv/lib/fdt_fixup.c
@@ -75,7 +75,7 @@ int riscv_fdt_copy_resv_mem_node(const void *src, void *dst)
pmp_mem.start = addr;
pmp_mem.end = addr + size - 1;
err = fdtdec_add_reserved_memory(dst, basename, &pmp_mem,
- &phandle);
+ &phandle, false);
if (err < 0 && err != -FDT_ERR_EXISTS) {
log_err("failed to add reserved memory: %d\n", err);
return err;