acpi: Zero-out MADT before filling it
Otherwise flags field is pre-filled with random garbage. Change-Id: Ie5dc0720183b8ba07561341003f28a86ffce911e Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86246 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
parent
224ec03fdf
commit
4985079b16
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,8 @@ static void acpi_create_madt(acpi_header_t *header, void *unused)
|
|||
acpi_madt_t *madt = (acpi_madt_t *)header;
|
||||
unsigned long current = (unsigned long)madt + sizeof(acpi_madt_t);
|
||||
|
||||
memset(madt, 0, sizeof(*madt));
|
||||
|
||||
if (acpi_fill_header(header, "APIC", MADT, sizeof(acpi_madt_t)) != CB_SUCCESS)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue