svn commit: r262924 - head/sys/arm/at91
Warner Losh
imp at FreeBSD.org
Sat Mar 8 06:06:42 UTC 2014
Author: imp
Date: Sat Mar 8 06:06:42 2014
New Revision: 262924
URL: http://svnweb.freebsd.org/changeset/base/262924
Log:
Properly round on unmapping.
Modified:
head/sys/arm/at91/at91.c
Modified: head/sys/arm/at91/at91.c
==============================================================================
--- head/sys/arm/at91/at91.c Sat Mar 8 05:03:56 2014 (r262923)
+++ head/sys/arm/at91/at91.c Sat Mar 8 06:06:42 2014 (r262924)
@@ -84,8 +84,12 @@ at91_bs_unmap(void *t, bus_space_handle_
{
vm_offset_t va, endva;
+ if (t == 0)
+ return;
va = trunc_page((vm_offset_t)t);
- endva = va + round_page(size);
+ if (va >= AT91_BASE && va <= AT91_BASE + 0xff00000)
+ return;
+ endva = round_page((vm_offset_t)t + size);
/* Free the kernel virtual mapping. */
kva_free(va, endva - va);
More information about the svn-src-all
mailing list