diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-12-10 14:31:56 +0100 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-12-10 22:23:59 +0100 | 
| commit | f15ea6e1d67782a1626d4a4922b6c20e380085e5 (patch) | |
| tree | 57d78f1ee94a2060eaa591533278d2934d4f1da3 /lib/fdtdec.c | |
| parent | cb7ee1b98cac6baf244daefb1192adf5a47bc983 (diff) | |
| parent | f44483b57c49282299da0e5c10073b909cdad979 (diff) | |
| download | olio-uboot-2014.01-f15ea6e1d67782a1626d4a4922b6c20e380085e5.tar.xz olio-uboot-2014.01-f15ea6e1d67782a1626d4a4922b6c20e380085e5.zip | |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts:
	arch/arm/cpu/armv7/rmobile/Makefile
	doc/README.scrapyard
Needed manual fix:
	arch/arm/cpu/armv7/omap-common/Makefile
	board/compulab/cm_t335/u-boot.lds
Diffstat (limited to 'lib/fdtdec.c')
| -rw-r--r-- | lib/fdtdec.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 51fa86833..207314fa7 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -86,10 +86,10 @@ fdt_addr_t fdtdec_get_addr_size(const void *blob, int node,  			size = (fdt_size_t *)((char *)cell +  					sizeof(fdt_addr_t));  			*sizep = fdt_size_to_cpu(*size); -			debug("addr=%p, size=%p\n", (void *)addr, -			      (void *)*sizep); +			debug("addr=%08lx, size=%08x\n", +			      (ulong)addr, *sizep);  		} else { -			debug("%p\n", (void *)addr); +			debug("%08lx\n", (ulong)addr);  		}  		return addr;  	} @@ -611,7 +611,7 @@ int fdtdec_decode_region(const void *blob, int node,  	if (!cell || (len != sizeof(fdt_addr_t) * 2))  		return -1; -	*ptrp = (void *)fdt_addr_to_cpu(*cell); +	*ptrp = map_sysmem(fdt_addr_to_cpu(*cell), *size);  	*size = fdt_size_to_cpu(cell[1]);  	debug("%s: size=%zx\n", __func__, *size);  	return 0; |