Make sure that TLB1 mappings are aligned correctly.

This commit is contained in:
Nathan Whitehorn 2013-11-17 01:59:42 +00:00
parent 055a74d854
commit b899f5d5c9

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 {