coreboot-kgpe-d16/src/commonlib
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
..
bsd mem_chip_info: Fix potential overflow 2022-12-15 02:53:45 +00:00
include/commonlib coreboot_tables: Make existing alignment conventions more explicit 2022-12-22 15:34:28 +00:00
storage src/commonlib: Remove unnecessary space after casts 2022-11-22 13:47:15 +00:00
fsp_relocate.c commonlib/fsp_relocate.c: Fix cbfstool build on 32-bit host 2022-11-25 13:53:31 +00:00
iobuf.c src/commonlib: Clean up includes 2022-10-26 16:27:10 +00:00
Makefile.inc commonlib: Add support for rational number approximation 2022-08-03 03:26:13 +00:00
mem_pool.c commonlib/mem_pool: Allow configuring the alignment 2021-11-04 10:33:52 +00:00
rational.c commonlib: Add support for rational number approximation 2022-08-03 03:26:13 +00:00
region.c src/commonlib: Clean up includes 2022-10-26 16:27:10 +00:00
sort.c