arm-trusted-firmware/include/common
Andre Przywara 3ef45dda88 Add fdt_add_reserved_memory() helper function
If a firmware component like TF-A reserves special memory regions for
its own or secure payload services, it should announce the location and
size of those regions to the non-secure world. This will avoid
disappointment when some rich OS tries to acccess this memory, which
will likely end in a crash.

The traditional way of advertising reserved memory using device tree is
using the special memreserve feature of the device tree blob (DTB).
However by definition those regions mentioned there do not prevent the
rich OS to map this memory, which may lead to speculative accesses to
this memory and hence spurious bus errors.

A safer way of carving out memory is to use the /reserved-memory node as
part of the normal DT structure. Besides being easier to setup, this
also defines an explicit "no-map" property to signify the secure-only
nature of certain memory regions, which avoids the rich OS to
accidentally step on it.

Add a helper function to allow platform ports to easily add a region.

Change-Id: I2b92676cf48fd3bdacda05b5c6b1c7952ebed68c
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2019-09-13 16:54:21 +01:00
..
tbbr Factor out cross-BL API into export headers suitable for 3rd party code 2019-07-23 20:25:34 -07:00
asm_macros_common.S Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
bl_common.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
debug.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
desc_image_load.h Add helper to parse BL31 parameters (both versions) 2019-07-23 20:25:34 -07:00
ep_info.h Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
fdt_fixup.h Add fdt_add_reserved_memory() helper function 2019-09-13 16:54:21 +01:00
fdt_wrappers.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
image_decompress.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
interrupt_props.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
param_header.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
romlib.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
runtime_svc.h Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00