svn commit: r295112 - head/sys/powerpc/powerpc

Justin Hibbits jhibbits at FreeBSD.org
Mon Feb 1 02:04:41 UTC 2016


Author: jhibbits
Date: Mon Feb  1 02:04:40 2016
New Revision: 295112
URL: https://svnweb.freebsd.org/changeset/base/295112

Log:
  Use the correct type to pmap_mapdev() in nexus_activate_resource().
  
  pmap_mapdev() takes vm_paddr_t, which may be sized differently from vm_offset_t,
  as it is in book-e.
  
  Sponsored by:	Alex Perez/Inertial Computing

Modified:
  head/sys/powerpc/powerpc/nexus.c

Modified: head/sys/powerpc/powerpc/nexus.c
==============================================================================
--- head/sys/powerpc/powerpc/nexus.c	Mon Feb  1 00:58:59 2016	(r295111)
+++ head/sys/powerpc/powerpc/nexus.c	Mon Feb  1 02:04:40 2016	(r295112)
@@ -189,13 +189,13 @@ nexus_activate_resource(device_t bus __u
 {
 
 	if (type == SYS_RES_MEMORY) {
-		vm_offset_t start;
+		vm_paddr_t start;
 		void *p;
 
-		start = (vm_offset_t) rman_get_start(r);
+		start = (vm_paddr_t) rman_get_start(r);
 		if (bootverbose)
-			printf("nexus mapdev: start %zx, len %ld\n", start,
-			    rman_get_size(r));
+			printf("nexus mapdev: start %jx, len %ld\n",
+			    (uintmax_t)start, rman_get_size(r));
 
 		p = pmap_mapdev(start, (vm_size_t) rman_get_size(r));
 		if (p == NULL)


More information about the svn-src-head mailing list