Make sure that TLB1 mappings are aligned correctly.

This commit is contained in:
nwhitehorn 2013-11-17 01:59:42 +00:00
parent 25371bcfa5
commit 3e8a850064

View File

@ -3175,6 +3175,7 @@ pmap_early_io_map(vm_paddr_t pa, vm_size_t size)
pa_base = trunc_page(pa);
size = roundup(size + (pa - pa_base), PAGE_SIZE);
tlb1_map_base = roundup2(tlb1_map_base, 1 << (ilog2(size) & ~1));
va = tlb1_map_base + (pa - pa_base);
do {