From: DENX Support System Date: Tue, 4 Apr 2006 10:30:03 +0200 Subject: [DNX#2006040442000057] [U-Boot-Users] [PATCH] Fix itest endianess problem [...] Message-ID: <1144139403.968207.768845788@castor.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 Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040442000057] was created: > Sorry I didn't Cc: to u-boot-patches at denx.de . > > Hello > > Command 'itest' has 2 bugs. > 1. It does not work on big endian machine. > and itest.b may cause unaligned access. > > 2. itest.l does not work on mips CPU. > on mips, > result of (1 << 32) -1 is 0. > (gcc 3.3.4 binutil 2.14.90.0.6 ) > I think, In C language, shifting more than 32bit is undefined. > > Please consider to merge > Patch is attched. > -------- > Hiroshi Ito > Media Lab. Inc., > URL http://www.mlb.co.jp ( Sorry, Japanese only. ) > TEL +81-3-5294-7255 FAX +81-3-5294-7256 Your U-Boot support team