aboutsummaryrefslogtreecommitdiff
path: root/lib/aarch64
diff options
context:
space:
mode:
authorAndrew Thoelke <andrew.thoelke@arm.com>2014-05-22 12:31:20 +0100
committerAndrew Thoelke <andrew.thoelke@arm.com>2014-05-22 12:31:20 +0100
commit1a4f19e36a9c591fc88052525fec5f13932b74cd (patch)
tree51bf05c2016911f6591a301a8a7315f3953c87ed /lib/aarch64
parentba9dbd10399c57e6bd4f19f2f5904b06f26d3ee4 (diff)
parent444281cc4117455446d978e4ac6e979342dcdf82 (diff)
downloadtrusted-firmware-a-1a4f19e36a9c591fc88052525fec5f13932b74cd.tar.gz
Merge pull request #91 from linmaonly/lin_dev
Address issue 156: 64-bit addresses get truncated
Diffstat (limited to 'lib/aarch64')
-rw-r--r--lib/aarch64/xlat_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aarch64/xlat_tables.c b/lib/aarch64/xlat_tables.c
index 6e04f65dd7..48b07149be 100644
--- a/lib/aarch64/xlat_tables.c
+++ b/lib/aarch64/xlat_tables.c
@@ -173,7 +173,7 @@ static mmap_region_t *init_xlation_table(mmap_region_t *mm, unsigned long base,
unsigned level_size_shift = L1_XLAT_ADDRESS_SHIFT - (level - 1) *
XLAT_TABLE_ENTRIES_SHIFT;
unsigned level_size = 1 << level_size_shift;
- unsigned level_index_mask = XLAT_TABLE_ENTRIES_MASK << level_size_shift;
+ unsigned long level_index_mask = XLAT_TABLE_ENTRIES_MASK << level_size_shift;
assert(level <= 3);