Skip to content

ARM: OMAP: replace custom sr32() by standard I/O accessors

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20140418132144.GZ5698@bill-the-cat

Versions newest first

  1. v2 Latest0 of 3 patches 0 repliesNew

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] [PATCH 0/3 v2] ARM: OMAP: replace custom sr32() by standard I/O accessors
Quoted 12 lines · Wolfgang Denk

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.

Quoted 6 lines

The code was built-tested for all TI boards (using "./MAKEALL -v ti") without errors or warnings.

Cc Tom Rini <[email protected]>
Cc Albert ARIBAUD <[email protected]>

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/28eab1c1/attachment.pgp>