X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Vlv2TbltDevicePkg%2FAcpiPlatform%2FAcpiPlatform.c;h=8a883f2a098df6a2d50dc7efa252a52ca3debb0b;hp=db1b5a5eeb554e57789fecdf05bf2a050bd20913;hb=2c855d3aaf36da80f8c4f0ae12d31900a628b0a9;hpb=b52e697b2a68e37e973653877733484ad2f65c29 diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c index db1b5a5eeb..8a883f2a09 100644 --- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c +++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c @@ -58,6 +58,7 @@ Abstract: #include #include #include +#include CHAR16 EfiPlatformCpuInfoVariable[] = L"PlatformCpuInfo"; @@ -238,6 +239,7 @@ PlatformUpdateTables ( UINT8 TempVal; EFI_ACPI_3_0_IO_APIC_STRUCTURE *IOApicType; EFI_ACPI_3_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER *APICTableHeader; + EFI_ACPI_WSMT_TABLE *WsmtTable; CurrPtr = NULL; EndPtr = NULL; @@ -599,6 +601,17 @@ PlatformUpdateTables ( gBS->FreePool (OcurModelStringBuffer); gBS->FreePool (OcurRefDataBlockBuffer); break; + + + case EFI_ACPI_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE: + WsmtTable = (EFI_ACPI_WSMT_TABLE *) Table; + // + // Update Microsoft WSMT table Protections flags. + // + WsmtTable->ProtectionFlags = ((WsmtTable->ProtectionFlags) | (EFI_WSMT_PROTECTION_FLAGS_FIXED_COMM_BUFFERS | EFI_WSMT_PROTECTION_FLAGS_COMM_BUFFER_NESTED_PTR_PROTECTION )); + break; + + default: break; }