mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00
Merge pull request #1617 from antonio-nino-diaz-arm/an/bugfix
xlat: Fix checks in mmap_add() and mmap_add_ctx()
This commit is contained in:
commit
3d3619c6df
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue