]> git.baikalelectronics.ru Git - arm-tf.git/commit
xlat_tables_v2: merge REGISTER_XLAT_CONTEXT_{FULL_SPEC,RO_BASE_TABLE}
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 6 Mar 2020 10:21:26 +0000 (19:21 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 11 Mar 2020 02:31:46 +0000 (11:31 +0900)
commit363830df1c28e240ed1132c6ce41f4a4b3efb8d8
tree80071011228e1cc7ec14bd2943702fdb7dfe975c
parent65012c08922fa5646ca7ca485036dfd901cae360
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>
include/lib/xlat_tables/xlat_tables_v2.h
include/lib/xlat_tables/xlat_tables_v2_helpers.h
lib/xlat_tables_v2/xlat_tables_context.c