diff options
author | Deepika Bhavnani <deepika.bhavnani@arm.com> | 2019-09-03 21:06:17 +0300 |
---|---|---|
committer | Deepika Bhavnani <deepika.bhavnani@arm.com> | 2019-11-12 11:14:18 -0600 |
commit | 9afe8cdc06c8e82b83d327978b937e51ade4925a (patch) | |
tree | 607e1be1424ff86e6fdae2015e407bddd78cdd4a /lib/xlat_tables_v2 | |
parent | 1d2b41614c5675b144ae1f4517c1f8bf249a12d2 (diff) | |
download | arm-trusted-firmware-9afe8cdc06c8e82b83d327978b937e51ade4925a.tar.gz |
Coding guideline suggest not to use unsigned long
`unsigned long` should be replaced to
1. `unsigned int` or `unsigned long long` - If fixed,
based on the architecture AArch32 or AArch64
2. `u_register_t` - If it is supposed to be 32-bit
wide in AArch32 and 64-bit wide in AArch64.
Translation descriptors are always 32-bit wide, here
`uint32_t` is used to describe the `exact size` of
translation descriptors instead of `unsigned int` which
guarantees minimum 32-bits
Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: I6a2af2e8b3c71170e2634044e0b887f07a41677e
Diffstat (limited to 'lib/xlat_tables_v2')
-rw-r--r-- | lib/xlat_tables_v2/xlat_tables_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xlat_tables_v2/xlat_tables_core.c b/lib/xlat_tables_v2/xlat_tables_core.c index 4f62f469f..3c0865b81 100644 --- a/lib/xlat_tables_v2/xlat_tables_core.c +++ b/lib/xlat_tables_v2/xlat_tables_core.c @@ -607,7 +607,8 @@ static uintptr_t xlat_tables_map_region(xlat_ctx_t *ctx, mmap_region_t *mm, } /* Point to new subtable from this one. */ - table_base[table_idx] = TABLE_DESC | (unsigned long)subtable; + table_base[table_idx] = + TABLE_DESC | (uintptr_t)subtable; /* Recurse to write into subtable */ end_va = xlat_tables_map_region(ctx, mm, table_idx_va, |