coreboot-kgpe-d16/tests/lib
Julius Werner 9a9b2778a1 coreboot_tables: Make existing alignment conventions more explicit
There seem to be some recurring vague concerns about the alignment of
coreboot table entries. While the existing implementation has been
producing tables with a well-defined alignment (4 bytes) for a long
time, the code doesn't always make it very clear. This patch adds an
explicit constant to codify that alignment, assertions to check it after
each entry, and adds explicit padding to the few entry structures that
were relying on compiler padding to return a correct sizeof() value.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Iaeef29ef255047a855066469e03b5481812e5975
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70158
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Peter Stuge <peter@stuge.se>
2022-12-22 15:34:28 +00:00
..
Makefile.inc
b64_decode-test.c tests: update CMocka to stable-1.1 2022-04-19 13:00:36 +00:00
bootmem-test.c tests/lib: Set IORESOURCE_ASSIGNED for bootmem-test and memrange-test 2022-08-13 16:38:41 +00:00
cbfs-lookup-test.c commonlib/bsd: Remove cb_err_t 2022-03-09 02:18:21 +00:00
cbfs-verification-test.c cbfs/vboot: Adapt to new vb2_digest API 2022-09-02 23:51:29 +00:00
cbmem_console-test.c
cbmem_stage_cache-test.c
compute_ip_checksum-test.c
coreboot_table-test.c coreboot_tables: Make existing alignment conventions more explicit 2022-12-22 15:34:28 +00:00
crc_byte-test.c
dimm_info_util-test.c
edid-test.c
fmap-test.c
hexstrtobin-test.c
imd-test.c tests/lib: Add space before single line comment termination 2022-03-27 15:33:39 +00:00
imd_cbmem-test.c cbmem_top_chipset: Change the return value to uintptr_t 2022-11-18 16:00:45 +00:00
lib-test.c
libgcc-test.c
list-test.c
lzma-test.c
malloc-test.c
memchr-test.c
memcmp-test.c
memcpy-test.c
memmove-test.c
memrange-test.c allocator_v4: Introduce RESOURCE_ALLOCATION_TOP_DOWN 2022-09-04 16:35:22 +00:00
memset-test.c
region_file-test.c
rtc-test.c
spd_cache-test.c test/lib: Add non-existent DIMMs test case in spd_cache-test 2022-11-03 13:00:15 +00:00
stack-test.c
string-test.c
timestamp-test.c timestamps: Rename timestamps to make names more consistent 2022-03-08 16:06:33 +00:00
uuid-test.c