From: Tom Rini Date: Fri, 18 Apr 2014 09:21:44 -0400 Subject: [U-Boot] [PATCH 0/3 v2] ARM: OMAP: replace custom sr32() by standard I/O accessors In-Reply-To: <1395755390-13118-1-git-send-email-wd@denx.de> References: <1395753669-12165-1-git-send-email-wd@denx.de> <1395755390-13118-1-git-send-email-wd@denx.de> Message-ID: <20140418132144.GZ5698@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 25, 2014 at 02:49:47PM +0100, Wolfgang Denk wrote: > This patch series replaces the custom bit manipulation function sr32() > by standard I/O accessors. A major motivation for this cleanup was > the fact that a number of calls of that function resulted in 32 bit > wide shift operations on u32 data, which according to the C-ISO > IEC-9899-Standard provokes undefined behaviour: > > 6.5.7 Bitwise shift operators > ... > If the value of the right operand is negative or is > greater than or equal to the width of the promoted left > operand, the behavior is undefined. > > The code was built-tested for all TI boards (using "./MAKEALL -v ti") > without errors or warnings. > > Signed-off-by: Wolfgang Denk > Cc: Tom Rini > Cc: Albert ARIBAUD Applied to u-boot-ti/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: