]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: google: Pack structures for coreboot table entries
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Feb 2026 15:56:19 +0000 (16:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Feb 2026 13:38:22 +0000 (14:38 +0100)
commit27fc52b5505a3acca96b884a4bf1345344e5a566
tree20b70160759e1f08a8f9948b7cdf2cb572a20235
parent95cef38e70250234a254e6228eb7342b6deaaffa
firmware: google: Pack structures for coreboot table entries

Pack the fields in the coreboot table entries. These entries are part of
the coreboot ABI, so they don't follow regular calling conventions. Fields
of type u64 are aligned to boundaries of 4 bytes instead of 8. [1]

So far this has not been a problem. In the future, padding bytes should
be added where explicit alignment is required.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://github.com/coreboot/coreboot/blob/main/payloads/libpayload/include/coreboot_tables.h#L96
Suggested-by: Julius Werner <jwerner@chromium.org>
Acked-by: Julius Werner <jwerner@chromium.org>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260217155836.96267-10-tzimmermann@suse.de
include/linux/coreboot.h