coreboot-kgpe-d16/payloads/libpayload/include
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
..
arm/arch
arm64/arch
arpa
mips/arch
pci libpayload/libpci: Add a constant for PCI class memory other 2017-08-10 16:41:16 +00:00
storage
sys
udc
usb
x86/arch
archive.h
assert.h
cbfs.h
cbfs_core.h
cbfs_ram.h
cbgfx.h
compiler.h
coreboot_tables.h LB_TAGS: change the value of CB_TAG_MAC_ADDRS to 0x33 2017-10-29 18:07:51 +00:00
ctype.h
die.h
endian.h endian: Fix bebitenc() to actually encode big-endian 2017-11-06 20:46:37 +00:00
errno.h
exception.h
fmap_serialized.h
gdb.h
getopt.h
inttypes.h
ipchksum.h
kconfig.h
keycodes.h
libpayload.h
limits.h
lz4.h
lzma.h
malloc.h
multiboot_tables.h
panel.h
pci.h
queue.h
stdarg.h
stddef.h libpayload: add *SECS_PER_SEC macros to stddef.h 2017-08-14 18:06:33 +00:00
stdint.h
stdio.h
stdlib.h
string.h
strings.h
swab.h
sysinfo.h
term.h
time.h libpayload: add time() 2017-08-21 16:53:20 +00:00
unistd.h
video_console.h