diff options
author | Simon Glass <sjg@chromium.org> | 2013-04-18 10:25:51 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-19 10:24:14 -0400 |
commit | 74a18ee8a563d9c21b5856269f911b69bc4aaccb (patch) | |
tree | 10bd52a8c5b1b855831bb47095ca7819b1d26222 /post/tests.c | |
parent | 2386060c16471f4cd183e6f8bce82450a7574ec6 (diff) | |
download | u-boot-imx-74a18ee8a563d9c21b5856269f911b69bc4aaccb.zip u-boot-imx-74a18ee8a563d9c21b5856269f911b69bc4aaccb.tar.gz u-boot-imx-74a18ee8a563d9c21b5856269f911b69bc4aaccb.tar.bz2 |
crc32: Correct endianness of crc32 result
When crc32 is handled by the hash library, it requires the data to be in
big-endian format, since it reads it byte-wise. Thus at present the 'crc32'
command reports incorrect data. For example, previously we might see:
Peach # crc32 40000000 100
CRC32 for 40000000 ... 400000ff ==> 0d968558
but instead with the hash library we see:
Peach # crc32 40000000 100
CRC32 for 40000000 ... 400000ff ==> 5885960d
Correct this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Diffstat (limited to 'post/tests.c')
0 files changed, 0 insertions, 0 deletions