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