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