Date: Sun, 17 Nov 2013 01:59:43 +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: r258243 - head/sys/powerpc/booke Message-ID: <201311170159.rAH1xh1m067886@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sun Nov 17 01:59:42 2013 New Revision: 258243 URL: http://svnweb.freebsd.org/changeset/base/258243 Log: Make sure that TLB1 mappings are aligned correctly. Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Sun Nov 17 01:07:46 2013 (r258242) +++ head/sys/powerpc/booke/pmap.c Sun Nov 17 01:59:42 2013 (r258243) @@ -3175,6 +3175,7 @@ pmap_early_io_map(vm_paddr_t pa, vm_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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311170159.rAH1xh1m067886>