]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Guid/PiSmmMemoryAttributesTable.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Include / Guid / PiSmmMemoryAttributesTable.h
1 /** @file
2 Define the GUID of the EDKII PI SMM memory attribute table, which
3 is published by PI SMM Core.
4
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_
11 #define _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_
12
13 #define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_GUID {\
14 0x6b9fd3f7, 0x16df, 0x45e8, {0xbd, 0x39, 0xb9, 0x4a, 0x66, 0x54, 0x1a, 0x5d} \
15 }
16
17 //
18 // The PI SMM memory attribute table contains the SMM memory map for SMM image.
19 //
20 // This table is installed to SMST as SMM configuration table.
21 //
22 // This table is published at gEfiSmmEndOfDxeProtocolGuid notification, because
23 // there should be no more SMM driver loaded after that. The EfiRuntimeServicesCode
24 // region should not be changed any more.
25 //
26 // This table is published, if and only if all SMM PE/COFF have aligned section
27 // as specified in UEFI specification Section 2.3. For example, IA32/X64 alignment is 4KiB.
28 //
29 // If this table is published, the EfiRuntimeServicesCode contains code only
30 // and it is EFI_MEMORY_RO; the EfiRuntimeServicesData contains data only
31 // and it is EFI_MEMORY_XP.
32 //
33 typedef struct {
34 UINT32 Version;
35 UINT32 NumberOfEntries;
36 UINT32 DescriptorSize;
37 UINT32 Reserved;
38 //EFI_MEMORY_DESCRIPTOR Entry[1];
39 } EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE;
40
41 #define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_VERSION 0x00000001
42
43 extern EFI_GUID gEdkiiPiSmmMemoryAttributesTableGuid;
44
45 #endif