arm-trusted-firmware/lib/xlat_tables_v2
Antonio Nino Diaz 9056f10806 xlat v2: Support mapping regions with allocated VA
Provide new APIs to add new regions without specifying the base VA.

- `mmap_add_region_alloc_va` adds a static region to mmap choosing as
  base VA the first possible address after all the currently mapped
  regions. It is aligned to an appropriate boundary in relation to the
  size and base PA of the requested region. No attempt is made to fill
  any unused VA holes.

- `mmap_add_dynamic_region_alloc_va` it adds a region the same way as
  `mmap_add_region_alloc_va` does, but it's dynamic instead of static.

- `mmap_add_alloc_va` takes an array of non const `mmap_region_t`,
  maps them in the same way as `mmap_add_region_alloc_va` and fills
  their `base_va` field. A helper macro has been created to help create
  the array, called `MAP_REGION_ALLOC_VA`.

Change-Id: I5ef3f82ca0dfd0013d2e8034aa22f13ca528ba37
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-11-22 13:29:45 +00:00
..
aarch32 xlat v2: Support the EL2 translation regime 2018-08-10 13:47:11 +01:00
aarch64 PIE: Use PC relative adrp/adr for symbol reference 2018-10-29 09:54:31 +00:00
xlat_tables.mk xlat: Fix compatibility between v1 and v2 2018-10-26 14:55:30 +01:00
xlat_tables_context.c xlat v2: Support mapping regions with allocated VA 2018-11-22 13:29:45 +00:00
xlat_tables_core.c xlat v2: Support mapping regions with allocated VA 2018-11-22 13:29:45 +00:00
xlat_tables_private.h xlat v2: Flush xlat tables after being modified 2018-08-07 12:47:12 +01:00
xlat_tables_utils.c libc: Use printf and snprintf across codebase 2018-08-22 10:26:05 +01:00