summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gru
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2017-11-03 13:54:16 -0700
committerJulius Werner <jwerner@chromium.org>2017-11-06 20:46:37 +0000
commit59e9080dcb136e2f4227a65140010aa442206dda (patch)
tree68bbac9d6d8a411150a29c6070844f52e4ea0eee /src/mainboard/google/gru
parentb202a01acd9617a37ed465a9b759128683d1fdf0 (diff)
downloadcoreboot-59e9080dcb136e2f4227a65140010aa442206dda.tar.xz
endian: Fix bebitenc() to actually encode big-endian
bebitenc() just runs a downward loop over the same body as lebitenc(). That doesn't give you a byte-swapped result, it gives you the same final value, just starting from the other side to fill it in. (Also, it confused i++ and i--, so it really gives you a compiler error.) The correct code needs to have the array index inverted relative to the bit shift index to produce a big endian result. Change-Id: I5c2da3a196334844ce23468bd0124bbe2f378c46 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/22322 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/gru')
0 files changed, 0 insertions, 0 deletions