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
3d3619c6
Unverified
Commit
3d3619c6
authored
Oct 08, 2018
by
Dimitris Papastamos
Committed by
GitHub
Oct 08, 2018
Browse files
Merge pull request #1617 from antonio-nino-diaz-arm/an/bugfix
xlat: Fix checks in mmap_add() and mmap_add_ctx()
parents
5634a493
a5fa5658
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/xlat_tables/xlat_tables_common.c
View file @
3d3619c6
...
...
@@ -176,7 +176,7 @@ void mmap_add(const mmap_region_t *mm)
{
const
mmap_region_t
*
mm_cursor
=
mm
;
while
(
mm_cursor
->
attr
!=
0U
)
{
while
((
mm_cursor
->
size
!=
0U
)
||
(
mm_cursor
->
attr
!=
0U
)
)
{
mmap_add_region
(
mm_cursor
->
base_pa
,
mm_cursor
->
base_va
,
mm_cursor
->
size
,
mm_cursor
->
attr
);
mm_cursor
++
;
...
...
lib/xlat_tables_v2/xlat_tables_core.c
View file @
3d3619c6
...
...
@@ -815,7 +815,7 @@ void mmap_add_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm)
{
const
mmap_region_t
*
mm_cursor
=
mm
;
while
(
mm_cursor
->
attr
!=
0U
)
{
while
(
mm_cursor
->
granularity
!=
0U
)
{
mmap_add_region_ctx
(
ctx
,
mm_cursor
);
mm_cursor
++
;
}
...
...
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