diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-02 09:57:29 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-02 15:08:18 +0100 |
commit | 5b395e37465aa12a3249a6ab1dd776f89dc16d05 (patch) | |
tree | b5ea8f8a30ad49ed04e0833c920eb7fe96008530 /lib/xlat_tables_v2/aarch32 | |
parent | f214a8069822051f738f3fe8bec85dad0f0ac71f (diff) |
xlat: Use bool instead of int
Change-Id: I35d5b6a7c219f6f38983b30f157c1ed3808af17f
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'lib/xlat_tables_v2/aarch32')
-rw-r--r-- | lib/xlat_tables_v2/aarch32/xlat_tables_arch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c b/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c index 21bb22d5..c09fb596 100644 --- a/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c +++ b/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c @@ -9,7 +9,7 @@ #include <assert.h> #include <cassert.h> #include <platform_def.h> -#include <utils.h> +#include <stdbool.h> #include <utils_def.h> #include <xlat_tables_v2.h> #include "../xlat_tables_private.h" @@ -19,15 +19,15 @@ #endif /* - * Returns 1 if the provided granule size is supported, 0 otherwise. + * Returns true if the provided granule size is supported, false otherwise. */ -int xlat_arch_is_granule_size_supported(size_t size) +bool xlat_arch_is_granule_size_supported(size_t size) { /* * The library uses the long descriptor translation table format, which * supports 4 KiB pages only. */ - return (size == PAGE_SIZE_4KB) ? 1 : 0; + return size == PAGE_SIZE_4KB; } size_t xlat_arch_get_max_supported_granule_size(void) @@ -43,7 +43,7 @@ unsigned long long xlat_arch_get_max_supported_pa(void) } #endif /* ENABLE_ASSERTIONS*/ -int is_mmu_enabled_ctx(const xlat_ctx_t *ctx __unused) +bool is_mmu_enabled_ctx(const xlat_ctx_t *ctx __unused) { return (read_sctlr() & SCTLR_M_BIT) != 0; } |