mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Make hard-wired TLB allocations be at minimum one page. This is required by
some implementations, most notably (in my case) QEMU's e500 emulation.
This commit is contained in:
parent
18093155a3
commit
c8d23639da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256864
|
@ -2613,6 +2613,8 @@ mmu_booke_mapdev(mmu_t mmu, vm_paddr_t pa, vm_size_t size)
|
|||
|
||||
va = (pa >= 0x80000000) ? pa : (0xe2000000 + pa);
|
||||
res = (void *)va;
|
||||
if (size < PAGE_SIZE)
|
||||
size = PAGE_SIZE;
|
||||
|
||||
do {
|
||||
sz = 1 << (ilog2(size) & ~1);
|
||||
|
|
Loading…
Reference in a new issue