Merge pull request #1099 from douglas-raillard-arm/dr/fix_mm_copy
xlat: fix mm copy when adding a region
This commit is contained in:
commit
ea12986b87
|
@ -754,10 +754,7 @@ void mmap_add_region_ctx(xlat_ctx_t *ctx, const mmap_region_t *mm)
|
|||
*/
|
||||
assert(mm_last->size == 0);
|
||||
|
||||
mm_cursor->base_pa = mm->base_pa;
|
||||
mm_cursor->base_va = mm->base_va;
|
||||
mm_cursor->size = mm->size;
|
||||
mm_cursor->attr = mm->attr;
|
||||
*mm_cursor = *mm;
|
||||
|
||||
if (end_pa > ctx->max_pa)
|
||||
ctx->max_pa = end_pa;
|
||||
|
@ -827,10 +824,8 @@ int mmap_add_dynamic_region_ctx(xlat_ctx_t *ctx, mmap_region_t *mm)
|
|||
*/
|
||||
assert(mm_last->size == 0);
|
||||
|
||||
mm_cursor->base_pa = mm->base_pa;
|
||||
mm_cursor->base_va = mm->base_va;
|
||||
mm_cursor->size = mm->size;
|
||||
mm_cursor->attr = mm->attr | MT_DYNAMIC;
|
||||
*mm_cursor = *mm;
|
||||
mm_cursor->attr |= MT_DYNAMIC;
|
||||
|
||||
/*
|
||||
* Update the translation tables if the xlat tables are initialized. If
|
||||
|
|
Loading…
Reference in New Issue