1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258243

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 {