xlat lib v2: Export translation context as an opaque type
At the moment, the translation context type (xlat_ctx_t) is a private
type reserved for the internal usage of the translation table library.
All exported APIs (implemented in xlat_tables_common.c) are wrappers
over the internal implementations that use such a translation context.

These wrappers unconditionally pass the current translation context
representing the memory mappings of the executing BL image. This means
that the caller has no control over which translation context the
library functions act on.

As a first step to make this code more flexible, this patch exports
the 'xlat_ctx_t' type. Note that, although the declaration of this type
is now public, its definition stays private. A macro is introduced to
statically allocate and initialize such a translation context.

The library now internally uses this macro to allocate the default
translation context for the running BL image.

Change-Id: Icece1cde4813fac19452c782b682c758142b1489
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
1 parent 8933c34 commit 55c84964f72dc90d00c9dede027be3b284dd60e1
@Sandrine Bailleux Sandrine Bailleux authored on 10 Jul 2017
Showing 4 changed files
View
include/lib/xlat_tables/xlat_tables_v2.h
View
include/lib/xlat_tables/xlat_tables_v2_helpers.h 0 → 100644
View
lib/xlat_tables_v2/xlat_tables_common.c
View
lib/xlat_tables_v2/xlat_tables_private.h