From: Wolfgang Denk Date: Thu, 24 Apr 2008 13:20:02 +0200 Subject: [U-Boot-Users] [PATCH v3] crc32: use uint32_t rather than unsigned long In-Reply-To: Your message of "Wed, 23 Apr 2008 01:39:03 EDT." <200804230139.03856.vapier@gentoo.org> Message-ID: <20080424112002.8533724AB1@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <200804230139.03856.vapier@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?