]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:19:12 +0000 (10:19 +0200)
commitfb3fb6573e8d6d0331e7ea60f94bfe0cabe8be54
tree8ea32d59336c81678847d1f35323e391f6ff77f1
parenta90a73cc0d58a388d0bb612a0228b5fda277e57f
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