xlat v2: Introduce xlat granule size helpers
The function xlat_arch_is_granule_size_supported() can be used to check
if a specific granule size is supported. In Armv8, AArch32 only supports
4 KiB pages. AArch64 supports 4 KiB, 16 KiB or 64 KiB depending on the
implementation, which is detected at runtime.

The function xlat_arch_get_max_supported_granule_size() returns the max
granule size supported by the implementation.

Even though right now they are only used by SPM, they may be useful in
other places in the future. This patch moves the code currently in SPM
to the xlat tables lib so that it can be reused.

Change-Id: If54624a5ecf20b9b9b7f38861b56383a03bbc8a4
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
1 parent 83a393b commit a0b9bb79a035a7421318502d04dde723e7381b6a
@Antonio Nino Diaz Antonio Nino Diaz authored on 11 Jun 2018
Showing 4 changed files
View
include/lib/xlat_tables/xlat_mmu_helpers.h
View
lib/xlat_tables_v2/aarch32/xlat_tables_arch.c
View
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c
View
services/std_svc/spm/sp_setup.c