diff options
author | Lin Ma <lin.ma@caviumnetworks.com> | 2014-05-20 11:25:55 -0700 |
---|---|---|
committer | Lin Ma <lin.ma@caviumnetworks.com> | 2014-05-20 11:25:55 -0700 |
commit | 444281cc4117455446d978e4ac6e979342dcdf82 (patch) | |
tree | df18616448f0bd3822bf5ebccf7ef6d6d3a1dc99 /lib/aarch64 | |
parent | c5c9b69c132c823aabc1e29c2ff6f30323c85483 (diff) |
Address issue 156: 64-bit addresses get truncated
Addresses were declared as "unsigned int" in drivers/arm/peripherals/pl011/pl011.h and in function init_xlation_table. Changed to use "unsigned long" instead
Fixes ARM-software/tf-issues#156
Diffstat (limited to 'lib/aarch64')
-rw-r--r-- | lib/aarch64/xlat_tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aarch64/xlat_tables.c b/lib/aarch64/xlat_tables.c index 6e04f65..48b0714 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); |