]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARM: OMAP: replace custom sr32() by standard I/O accessors
authorWolfgang Denk <wd@denx.de>
Tue, 25 Mar 2014 13:49:50 +0000 (14:49 +0100)
committerTom Rini <trini@ti.com>
Thu, 17 Apr 2014 18:39:54 +0000 (14:39 -0400)
commita88e55c4c6ad92626cff205e3504b483df27c5a0
treea40c3101413b989e33b94742b8595118ac5f43ef
parent4e4685027cc8e940d43a4d6e63773bfab9165913
ARM: OMAP: replace custom sr32() by standard I/O accessors

Replace 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.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
arch/arm/cpu/armv7/omap3/clock.c