]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Wsmt/Wsmt.aslc
BaseTools/GenFw: recognize MM file types as EFI Boot Service Drivers.
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / Wsmt / Wsmt.aslc
1 /*++
2 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
3
4 This program and the accompanying materials are licensed and made available under
5 the terms and conditions of the BSD License that accompanies this distribution.
6 The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php.
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12
13
14 Module Name:
15
16 Wsmt.c
17
18 Abstract:
19
20 This file contains a structure definition for the Windows SMM Security
21 Mitigations Table (WSMT).
22
23 ++*/
24
25 //
26 // Statements that include other files
27 //
28 #include "AcpiTablePlatform.h"
29 #include <IndustryStandard/WindowsSmmSecurityMitigationTable.h>
30
31 //
32 // WSMT Table definition
33 //
34 EFI_ACPI_WSMT_TABLE WSMT = {
35 EFI_ACPI_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE,
36 sizeof (EFI_ACPI_WSMT_TABLE),
37 EFI_WSMT_TABLE_REVISION,
38 //
39 // Checksum will be updated at runtime
40 //
41 0,
42 EFI_ACPI_OEM_ID, // OEMID is a 6 bytes long field
43 EFI_ACPI_OEM_TABLE_ID, // OEM table identification(8 bytes long)
44 EFI_ACPI_OEM_REVISION, // OEM revision
45 EFI_ACPI_CREATOR_ID, // ASL compiler vendor ID
46 EFI_ACPI_CREATOR_REVISION, // ASL compiler revision number
47 0x00000000, // Protection flag
48 };
49
50 VOID*
51 ReferenceAcpiTable (
52 VOID
53 )
54 {
55 //
56 // Reference the table being generated to prevent the optimizer from
57 // removing the data structure from the executable
58 //
59 return (VOID*)&WSMT;
60 }