[U-Boot] [PATCH] fastboot: mmc: Fix use of 64 bit division

Tom Rini trini at konsulko.com
Fri Nov 13 02:26:23 CET 2015


On Wed, Nov 11, 2015 at 12:09:32PM -0500, Tom Rini wrote:
> On Wed, Nov 11, 2015 at 05:36:09PM +0100, Hans de Goede wrote:
> 
> > Directly doing a 64 bit division (when CONFIG_SYS_64BIT_LBA is set)
> > causes linking to fail when building u-boot for ARMv7 with a hard-float
> > tool-chain.
> > 
> > This commit fixes this by properly using div_u64 for the division.
> > 
> > Note that an alternative fix would be to stop using lbaint_t for
> > blkcnt / blks, since the passed in "download_bytes" is only 32 bits
> > anyways. But we may want to support files / partitions larger then 4G
> > in the near future and using div_u64 is future proof for when
> > download_bytes' type gets changed to a lbaint_t itself.
> > 
> > Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> 
> Reviewed-by: Tom Rini <trini at konsulko.com>

But a duplicate of https://patchwork.ozlabs.org/patch/537185/ sorry :(

-- 
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/20151112/542466cf/attachment.sig>


More information about the U-Boot mailing list