coreboot-kgpe-d16/tests
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
..
acpi tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
commonlib tests/commonlib/rational-test: Use test group runner wrapper 2022-09-07 22:24:31 +00:00
console tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
data/lib/lzma-test tests: Add lib/lzma-test test case 2021-10-14 13:13:07 +00:00
device tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
include tests/include: Move EMPTY_WRAP() macro to tests/include/test.h 2022-02-10 21:16:49 +00:00
lib coreboot_tables: Make existing alignment conventions more explicit 2022-12-22 15:34:28 +00:00
mock tests: Fix tests code and comments style 2022-01-14 14:29:29 +00:00
stubs
Makefile.common tests/Makefile.common: Remove unnecessary dependency to kconfig/conf 2022-12-17 20:32:12 +00:00
Makefile.inc tests/Makefile.inc: Build utilities in separate directory 2022-12-17 20:32:53 +00:00