coreboot-kgpe-d16/payloads
Julius Werner 59e9080dcb 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>
2017-11-06 20:46:37 +00:00
..
bayou payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
coreinfo payloads/coreinfo: Free buffer before returning 2017-09-11 16:23:52 +00:00
external payloads/external: Clone GRUB2 over HTTPS 2017-09-16 22:33:29 +00:00
libpayload endian: Fix bebitenc() to actually encode big-endian 2017-11-06 20:46:37 +00:00
nvramcui nvramcui: Use regular `if` over `#if` for `IS_ENABLED` 2017-06-06 23:34:19 +02:00
Kconfig payloads/Kconfig: Add NO_DEFAULT_PAYLOAD 2017-06-07 13:10:48 +02:00
Makefile.inc payloads/Makefile.inc: Add GRUB2 to list of payloads 2017-08-15 14:26:29 +00:00