diff options
| author | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2018-08-03 10:53:12 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-03 10:53:12 +0100 | 
| commit | f943ce74aee9a52fac1febfce8acaa28696e532d (patch) | |
| tree | 44deac3e5a905456c5224c5ff7e274390cc4fea6 /include/lib | |
| parent | 0454f64b72e3b6a2d3c2a47dead322eb528e709f (diff) | |
| parent | 362030bf0679c118233fbe69fb287d8742e598ee (diff) | |
Merge pull request #1509 from antonio-nino-diaz-arm/an/bool
xlat: psci: Use bool instead of int
Diffstat (limited to 'include/lib')
| -rw-r--r-- | include/lib/xlat_tables/xlat_mmu_helpers.h | 3 | ||||
| -rw-r--r-- | include/lib/xlat_tables/xlat_tables_v2_helpers.h | 7 | 
2 files changed, 6 insertions, 4 deletions
| diff --git a/include/lib/xlat_tables/xlat_mmu_helpers.h b/include/lib/xlat_tables/xlat_mmu_helpers.h index 3906efb4..cd42c33e 100644 --- a/include/lib/xlat_tables/xlat_mmu_helpers.h +++ b/include/lib/xlat_tables/xlat_mmu_helpers.h @@ -52,6 +52,7 @@  #ifndef __ASSEMBLY__ +#include <stdbool.h>  #include <stdint.h>  #include <sys/types.h> @@ -78,7 +79,7 @@ void enable_mmu_direct_el1(unsigned int flags);  void enable_mmu_direct_el3(unsigned int flags);  #endif /* AARCH32 */ -int xlat_arch_is_granule_size_supported(size_t size); +bool xlat_arch_is_granule_size_supported(size_t size);  size_t xlat_arch_get_max_supported_granule_size(void);  #endif /* __ASSEMBLY__ */ diff --git a/include/lib/xlat_tables/xlat_tables_v2_helpers.h b/include/lib/xlat_tables/xlat_tables_v2_helpers.h index d3d2fc4e..fa899588 100644 --- a/include/lib/xlat_tables/xlat_tables_v2_helpers.h +++ b/include/lib/xlat_tables/xlat_tables_v2_helpers.h @@ -20,6 +20,7 @@  #include <cassert.h>  #include <platform_def.h> +#include <stdbool.h>  #include <stddef.h>  #include <xlat_tables_arch.h>  #include <xlat_tables_defs.h> @@ -95,8 +96,8 @@ struct xlat_ctx {  	/* Level of the base translation table. */  	unsigned int base_level; -	/* Set to 1 when the translation tables are initialized. */ -	int initialized; +	/* Set to true when the translation tables are initialized. */ +	bool initialized;  	/*  	 * Translation regime managed by this xlat_ctx_t. It should be one of @@ -157,7 +158,7 @@ struct xlat_ctx {  		.max_pa = 0U,						\  		.max_va = 0U,						\  		.next_table = 0,					\ -		.initialized = 0,					\ +		.initialized = false,					\  	}  #endif /*__ASSEMBLY__*/ | 
