Make sure that TLB1 mappings are aligned correctly.
This commit is contained in:
parent
055a74d854
commit
b899f5d5c9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user