xlat_tables_v2: merge REGISTER_XLAT_CONTEXT_{FULL_SPEC,RO_BASE_TABLE}
xlat_tables_v2_helpers.h defines two quite similar macros,
REGISTER_XLAT_CONTEXT_FULL_SPEC and REGISTER_XLAT_CONTEXT_RO_BASE_TABLE.

Only the difference is the section of _ctx_name##_base_xlat_table.

Parameterize it and unify these two macros.

The base xlat table goes into the .bss section by default.
If PLAT_RO_XLAT_TABLES is defined, it goes into the .rodata section.

Change-Id: I8b02f4da98f0c272e348a200cebd89f479099c55
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 65012c0 commit 363830df1c28e240ed1132c6ce41f4a4b3efb8d8
@Masahiro Yamada Masahiro Yamada authored on 6 Mar 2020
Showing 3 changed files
View
include/lib/xlat_tables/xlat_tables_v2.h
View
include/lib/xlat_tables/xlat_tables_v2_helpers.h
View
lib/xlat_tables_v2/xlat_tables_context.c