arm-trusted-firmware/lib/xlat_tables_v2
Masahiro Yamada 115041633d locks: bakery: use is_dcache_enabled() helper
bakery_lock_normal.c uses the raw register accessor, read_sctlr(_el3)
to check whether the dcache is enabled.

Using is_dcache_enabled() is cleaner, and a good abstraction for
the library code like this.

A problem is is_dcache_enabled() is declared in the local header,
lib/xlat_tables_v2/xlat_tables_private.h

I searched for a good place to declare this helper. Moving it to
arch_helpers.h, closed to cache operation helpers, looks good enough
to me.

I also changed the type of 'is_cached' to bool for consistency,
and to avoid MISRA warnings.

Change-Id: I9b016f67bc8eade25c316aa9c0db0fa4cd375b79
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2020-04-07 09:33:13 +02:00
..
aarch32 lib/xlat_tables: Add support for ARMv8.4-TTST 2019-01-30 11:17:38 +00:00
aarch64 xlat_tables_v2: use get_current_el_maybe_constant() in is_dcache_enabled() 2020-04-03 11:56:51 +09:00
ro_xlat_tables.mk Read-only xlat tables for BL31 memory 2020-02-24 16:52:56 +00:00
xlat_tables.mk Read-only xlat tables for BL31 memory 2020-02-24 16:52:56 +00:00
xlat_tables_context.c xlat_tables_v2: fix assembler warning of PLAT_RO_XLAT_TABLES 2020-04-02 13:30:17 +09:00
xlat_tables_core.c xlat lib v2: Add support to pass shareability attribute for normal memory region 2020-04-03 17:31:24 +05:30
xlat_tables_private.h locks: bakery: use is_dcache_enabled() helper 2020-04-07 09:33:13 +02:00
xlat_tables_utils.c xlat_table_v2: Fix enable WARMBOOT_ENABLE_DCACHE_EARLY config 2019-10-18 10:26:34 +01:00