Date: Mon, 21 Oct 2013 22:25:54 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r256864 - head/sys/powerpc/booke Message-ID: <201310212225.r9LMPs8A098502@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Mon Oct 21 22:25:54 2013 New Revision: 256864 URL: http://svnweb.freebsd.org/changeset/base/256864 Log: 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. Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Mon Oct 21 21:32:24 2013 (r256863) +++ head/sys/powerpc/booke/pmap.c Mon Oct 21 22:25:54 2013 (r256864) @@ -2613,6 +2613,8 @@ mmu_booke_mapdev(mmu_t mmu, vm_paddr_t p va = (pa >= 0x80000000) ? pa : (0xe2000000 + pa); res = (void *)va; + if (size < PAGE_SIZE) + size = PAGE_SIZE; do { sz = 1 << (ilog2(size) & ~1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310212225.r9LMPs8A098502>