Skip to content

Commit

Permalink
[arch][arm64][mmu] Add barrier in map
Browse files Browse the repository at this point in the history
Fixes random crashes on Cortex-A53

Change-Id: Id3d5c8347dbc4389784e522d083e7658070edce4
  • Loading branch information
arve-android committed May 14, 2015
1 parent 99c543c commit b4aaff6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/arm64/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ int arm64_mmu_map(vaddr_t vaddr, paddr_t paddr, size_t size, pte_t attrs,
uint top_index_shift, uint page_size_shift,
pte_t *top_page_table, uint asid)
{
int ret;
vaddr_t vaddr_rel = vaddr - vaddr_base;
vaddr_t vaddr_rel_max = 1UL << top_size_shift;

Expand All @@ -431,8 +432,10 @@ int arm64_mmu_map(vaddr_t vaddr, paddr_t paddr, size_t size, pte_t attrs,
return ERR_INVALID_ARGS;
}

return arm64_mmu_map_pt(vaddr, vaddr_rel, paddr, size, attrs,
top_index_shift, page_size_shift, top_page_table, asid);
ret = arm64_mmu_map_pt(vaddr, vaddr_rel, paddr, size, attrs,
top_index_shift, page_size_shift, top_page_table, asid);
DSB;
return ret;
}

int arm64_mmu_unmap(vaddr_t vaddr, size_t size,
Expand Down

0 comments on commit b4aaff6

Please sign in to comment.