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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to