Commit 3992c359 authored by danh-arm's avatar danh-arm
Browse files

Merge pull request #611 from sandrine-bailleux-arm/sb/fix-init_xlation_table_inner

Fix computation of L1 bitmask in the translation table lib
parents 142ff9b5 aa447b9c
...@@ -284,8 +284,9 @@ static mmap_region_t *init_xlation_table_inner(mmap_region_t *mm, ...@@ -284,8 +284,9 @@ static mmap_region_t *init_xlation_table_inner(mmap_region_t *mm,
unsigned level_size_shift = L1_XLAT_ADDRESS_SHIFT - (level - 1) * unsigned level_size_shift = L1_XLAT_ADDRESS_SHIFT - (level - 1) *
XLAT_TABLE_ENTRIES_SHIFT; XLAT_TABLE_ENTRIES_SHIFT;
unsigned level_size = 1 << level_size_shift; unsigned level_size = 1 << level_size_shift;
unsigned long long level_index_mask = XLAT_TABLE_ENTRIES_MASK << unsigned long long level_index_mask =
level_size_shift; ((unsigned long long) XLAT_TABLE_ENTRIES_MASK)
<< level_size_shift;
assert(level > 0 && level <= 3); assert(level > 0 && level <= 3);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment