]> git.dujemihanovic.xyz Git - u-boot.git/commit
common/cmd_source.c: Fix the source command failure under 64-bit platform
authorGong Qianyu <Qianyu.Gong@freescale.com>
Thu, 30 Jul 2015 06:00:01 +0000 (14:00 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:56 +0000 (20:47 -0400)
commit210fbee901b13d8e21568fc3e00932f3e082c178
treefa85473a2653c47a41b44ef51dda75fdcd4e86f5
parent7ef4c45c6e78f3775894053e65e93bdac1e77e63
common/cmd_source.c: Fix the source command failure under 64-bit platform

Modify the data pointer type from ulong* to u32*.

For arm64 type "ulong" could be 64-bit. Then in line 89 of common/cmd_source.c:
"while (*data++);" data will point to the next 64 bits each time. As the uImage
file generated by mkimage tool keeps the same data format in either 32-bit or 64-bit
platform, the difference would cause failure in 64-bit platform.

Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
common/cmd_source.c