diff options
author | Wolfgang Denk <wd@denx.de> | 2014-03-25 14:49:50 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-04-17 14:39:54 -0400 |
commit | a88e55c4c6ad92626cff205e3504b483df27c5a0 (patch) | |
tree | a40c3101413b989e33b94742b8595118ac5f43ef /arch/arm/include/asm/omap_mmc.h | |
parent | 4e4685027cc8e940d43a4d6e63773bfab9165913 (diff) |
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>
Diffstat (limited to 'arch/arm/include/asm/omap_mmc.h')
0 files changed, 0 insertions, 0 deletions