[U-Boot] [PATCH 6/8]: Use lldiv to avoid references to __udvidi3 on (at least) ARM

Simon Kagstrom simon.kagstrom at netinsight.net
Tue Jul 7 16:29:54 CEST 2009


On Tue, 7 Jul 2009 16:20:49 +0200
Stefan Roese <sr at denx.de> wrote:

> > -	ubi->peb_count  = ubi->mtd->size / ubi->mtd->erasesize;
> > +	ubi->peb_count  = lldiv(ubi->mtd->size, ubi->mtd->erasesize);
> 
> This rebinds me of a patch I sent a few weeks ago (and forgot to actually push 
> into u-boot-ubi):
> 
> http://article.gmane.org/gmane.comp.boot-loaders.u-boot/62440
> 
> I suggest we use my patch version since this brings the u-boot UBI version 
> back in sync with the Linux version.

Agreed!

// Simon


More information about the U-Boot mailing list