[U-Boot] [PATCH] mmc: Use lldiv() for 64-bit division in write_raw_image()

Tom Rini trini at konsulko.com
Wed Oct 28 21:55:56 CET 2015


On Wed, Oct 28, 2015 at 06:24:16AM +0200, Siarhei Siamashka wrote:

> This fixes compilation problems when using a hardfloat toolchain on
> ARM, which manifest themselves as "libgcc.a(_udivmoddi4.o) uses
> VFP register arguments, u-boot does not".
> 
> These problems have been reported in the U-Boot mailing list:
>     http://lists.denx.de/pipermail/u-boot/2015-October/230314.html
>     http://lists.denx.de/pipermail/u-boot/2015-October/231908.html
> 
> Signed-off-by: Siarhei Siamashka <siarhei.siamashka at gmail.com>

We care about the result not the remainder here so lldiv is correct.

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
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/20151028/352c22bb/attachment.sig>


More information about the U-Boot mailing list