]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Wsmt/Wsmt.aslc
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / Wsmt / Wsmt.aslc
1 /*++
2 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
3
4 SPDX-License-Identifier: BSD-2-Clause-Patent
5
6
7
8 Module Name:
9
10 Wsmt.c
11
12 Abstract:
13
14 This file contains a structure definition for the Windows SMM Security
15 Mitigations Table (WSMT).
16
17 ++*/
18
19 //
20 // Statements that include other files
21 //
22 #include "AcpiTablePlatform.h"
23 #include <IndustryStandard/WindowsSmmSecurityMitigationTable.h>
24
25 //
26 // WSMT Table definition
27 //
28 EFI_ACPI_WSMT_TABLE WSMT = {
29 EFI_ACPI_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE,
30 sizeof (EFI_ACPI_WSMT_TABLE),
31 EFI_WSMT_TABLE_REVISION,
32 //
33 // Checksum will be updated at runtime
34 //
35 0,
36 EFI_ACPI_OEM_ID, // OEMID is a 6 bytes long field
37 EFI_ACPI_OEM_TABLE_ID, // OEM table identification(8 bytes long)
38 EFI_ACPI_OEM_REVISION, // OEM revision
39 EFI_ACPI_CREATOR_ID, // ASL compiler vendor ID
40 EFI_ACPI_CREATOR_REVISION, // ASL compiler revision number
41 0x00000000, // Protection flag
42 };
43
44 VOID*
45 ReferenceAcpiTable (
46 VOID
47 )
48 {
49 //
50 // Reference the table being generated to prevent the optimizer from
51 // removing the data structure from the executable
52 //
53 return (VOID*)&WSMT;
54 }