[U-Boot] [U-Boot, 2/2] common/cmd_source.c: Fix the source command failure under 64-bit platform
Tom Rini
trini at konsulko.com
Thu Aug 13 15:21:38 CEST 2015
On Thu, Jul 30, 2015 at 02:00:01PM +0800, Gong Qianyu wrote:
> 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 at freescale.com>
>
> diff --git a/common/cmd_source.c b/common/cmd_source.c
> index d2a881d..db7ab7e 100644
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/a55a1e25/attachment.sig>
More information about the U-Boot
mailing list