[U-Boot-Users] [PATCH v3] crc32: use uint32_t rather than unsigned long

Wolfgang Denk wd at denx.de
Thu Apr 24 13:20:02 CEST 2008


In message <200804230139.03856.vapier at gentoo.org> you wrote:
> 
> On Monday 31 March 2008, Mike Frysinger wrote:
> > The envcrc.c does sizeof(unsigned long) when calculating the crc, but this
> > is done with the build toolchain instead of the target toolchain, so if the
> > build is a 64bit system but the target is 32bits, the size will obviously
> > be wrong. This converts all unsigned long stuff related to crc32 to
> > uint32_t types. Compile tested only: output of ./tools/envcrc when run on a
> > 32bit build system matches that of a 64bit build system.
> 
> ping
> -mike

Applied. Thanks for the patch, and thanks for the reminder.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If a packet hits a pocket on a socket on a port,
And the bus is interrupted as a very last resort,
And the address of the memory makes your floppy disk abort,
Then the socket packet pocket has an error to report! - Ken Burchill?




More information about the U-Boot mailing list