svn commit: r293064 - head/sys/boot/uboot/lib

Ian Lepore ian at FreeBSD.org
Sat Jan 2 22:56:01 UTC 2016


Author: ian
Date: Sat Jan  2 22:55:59 2016
New Revision: 293064
URL: https://svnweb.freebsd.org/changeset/base/293064

Log:
  Cast pointer through uintptr_t on the way to uint64_t to squelch a warning.

Modified:
  head/sys/boot/uboot/lib/copy.c

Modified: head/sys/boot/uboot/lib/copy.c
==============================================================================
--- head/sys/boot/uboot/lib/copy.c	Sat Jan  2 22:31:14 2016	(r293063)
+++ head/sys/boot/uboot/lib/copy.c	Sat Jan  2 22:55:59 2016	(r293064)
@@ -100,7 +100,7 @@ uboot_loadaddr(u_int type, void *data, u
 
 		biggest_block = 0;
 		biggest_size = 0;
-		subldr = rounddown2((uint64_t)_start, KERN_ALIGN);
+		subldr = rounddown2((uint64_t)(uintptr_t)_start, KERN_ALIGN);
 		eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN);
 		for (i = 0; i < si->mr_no; i++) {
 			if (si->mr[i].flags != MR_ATTR_DRAM)


More information about the svn-src-all mailing list