Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
3992c359
Commit
3992c359
authored
Apr 27, 2016
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/xlat_tables/xlat_tables_common.c
View file @
3992c359
...
...
@@ -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
)
*
XLAT_TABLE_ENTRIES_SHIFT
;
unsigned
level_size
=
1
<<
level_size_shift
;
unsigned
long
long
level_index_mask
=
XLAT_TABLE_ENTRIES_MASK
<<
level_size_shift
;
unsigned
long
long
level_index_mask
=
((
unsigned
long
long
)
XLAT_TABLE_ENTRIES_MASK
)
<<
level_size_shift
;
assert
(
level
>
0
&&
level
<=
3
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment