Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2014 01:18:34 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261304 - head/sys/arm/at91
Message-ID:  <201401310118.s0V1IYuj032678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Jan 31 01:18:34 2014
New Revision: 261304
URL: http://svnweb.freebsd.org/changeset/base/261304

Log:
  When mapping an address, the bsh needs the same offset we do for other
  things.

Modified:
  head/sys/arm/at91/at91.c

Modified: head/sys/arm/at91/at91.c
==============================================================================
--- head/sys/arm/at91/at91.c	Thu Jan 30 22:26:51 2014	(r261303)
+++ head/sys/arm/at91/at91.c	Fri Jan 31 01:18:34 2014	(r261304)
@@ -74,7 +74,7 @@ at91_bs_map(void *t, bus_addr_t bpa, bus
 	}
 	endpa = round_page(bpa + size);
 
-	*bshp = (vm_offset_t)pmap_mapdev(pa, endpa - pa);
+	*bshp = (vm_offset_t)pmap_mapdev(pa, endpa - pa) + (bpa - pa);
 
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401310118.s0V1IYuj032678>