SMBIOS: Introduce `smbios_carve_table` function
commitd62a5012d6e5904279eb56507bc2a021d2acce77
authorAngel Pons <th3fanbus@gmail.com>
Mon, 28 Jun 2021 15:18:06 +0000 (28 17:18 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 1 Jul 2021 07:37:21 +0000 (1 07:37 +0000)
tree2b8a4eb40ed8842ca8f237501182a3684931ac2a
parentca01baa065e25242945bdfa8631694a6e903f17f
SMBIOS: Introduce `smbios_carve_table` function

Factor out some boilerplate code into a helper `smbios_carve_table`
function, which zeroes out the table memory and fills in the header
fields common to all tables.

Change-Id: Iece2f64f9151d3c79813f6264dfb3a92d98c2035
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55907
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
src/arch/x86/smbios.c
src/drivers/elog/elog.c
src/drivers/wifi/generic/smbios.c
src/include/smbios.h
src/mainboard/emulation/qemu-i440fx/northbridge.c
src/mainboard/pcengines/apu1/mainboard.c
src/mainboard/pcengines/apu2/mainboard.c
src/mainboard/samsung/lumpy/mainboard.c