aboutsummaryrefslogtreecommitdiffstats
path: root/xen
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-01-24 12:47:49 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-01-24 12:47:49 +0000
commit0be739ee82472b189c3bc46813ea66c0c1d9f7a6 (patch)
tree7fbaf9c99c8628b898a98e9b9b0b31847c121601 /xen
parent34446a7e5ad47cc7902c384069a60fc3436f9f08 (diff)
downloadxen-0be739ee82472b189c3bc46813ea66c0c1d9f7a6.tar.gz
xen-0be739ee82472b189c3bc46813ea66c0c1d9f7a6.tar.bz2
xen-0be739ee82472b189c3bc46813ea66c0c1d9f7a6.zip
xen/arm: flush the entire dest_va 2MB mapping
At the beginning of setup_pagetables we modify a 2MB mapping but we only flush the first 4KB of it. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen')
-rw-r--r--xen/arch/arm/mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index f5712f7007..5212670067 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -246,7 +246,7 @@ void __init setup_pagetables(unsigned long boot_phys_offset, paddr_t xen_paddr)
dest_va = BOOT_MISC_VIRT_START;
pte = mfn_to_xen_entry(xen_paddr >> PAGE_SHIFT);
write_pte(xen_second + second_table_offset(dest_va), pte);
- flush_xen_data_tlb_range_va(dest_va, PAGE_SIZE);
+ flush_xen_data_tlb_range_va(dest_va, SECOND_SIZE);
/* Calculate virt-to-phys offset for the new location */
phys_offset = xen_paddr - (unsigned long) _start;