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 Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
arm64/arch Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
arpa
mips/arch Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
pci libpayload/libpci: Add a constant for PCI class memory other 2017-08-10 16:41:16 +00:00
storage
sys
udc
usb Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
x86/arch Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
archive.h
assert.h
cbfs.h
cbfs_core.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
cbfs_ram.h
cbgfx.h detachables: Add invert parameter 2017-05-25 18:23:56 +02:00
compiler.h add __must_check to */compiler.h 2017-08-08 18:18:03 +00:00
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 Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
gdb.h
getopt.h
inttypes.h
ipchksum.h
kconfig.h
keycodes.h
libpayload.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
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 Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
stdlib.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
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