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:
Nathan Whitehorn 2013-10-21 22:25:54 +00:00
parent 18093155a3
commit c8d23639da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256864

View file

@ -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);