Date: Wed, 20 Nov 2013 23:06:54 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258410 - head/sys/arm/arm Message-ID: <201311202306.rAKN6sMV010621@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cognet Date: Wed Nov 20 23:06:54 2013 New Revision: 258410 URL: http://svnweb.freebsd.org/changeset/base/258410 Log: In pmap_unmapdev(), remember the size, and use that as an argument to kva_free(), or we'd end up always passing it a size of 0, and for some strange reason it doesn't seem to like it. Modified: head/sys/arm/arm/devmap.c Modified: head/sys/arm/arm/devmap.c ============================================================================== --- head/sys/arm/arm/devmap.c Wed Nov 20 23:02:09 2013 (r258409) +++ head/sys/arm/arm/devmap.c Wed Nov 20 23:06:54 2013 (r258410) @@ -240,6 +240,7 @@ void pmap_unmapdev(vm_offset_t va, vm_size_t size) { vm_offset_t tmpva, offset; + vm_size_t origsize = size; offset = va & PAGE_MASK; va = trunc_page(va); @@ -251,6 +252,6 @@ pmap_unmapdev(vm_offset_t va, vm_size_t tmpva += PAGE_SIZE; } - kva_free(va, size); + kva_free(va, origsize); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311202306.rAKN6sMV010621>