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 This program and the accompanying materials are licensed and made available under 7 the terms and conditions of the BSD License that accompanies this distribution. 8 The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php. 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 14 **/ 15 16 #ifndef _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_ 17 #define _PI_SMM_MEMORY_ATTRIBUTES_TABLE_H_ 18 19 #define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_GUID {\ 20 0x6b9fd3f7, 0x16df, 0x45e8, {0xbd, 0x39, 0xb9, 0x4a, 0x66, 0x54, 0x1a, 0x5d} \ 21 } 22 23 // 24 // The PI SMM memory attribute table contains the SMM memory map for SMM image. 25 // 26 // This table is installed to SMST as SMM configuration table. 27 // 28 // This table is published at gEfiSmmEndOfDxeProtocolGuid notification, because 29 // there should be no more SMM driver loaded after that. The EfiRuntimeServicesCode 30 // region should not be changed any more. 31 // 32 // This table is published, if and only if all SMM PE/COFF have aligned section 33 // as specified in UEFI specification Section 2.3. For example, IA32/X64 alignment is 4KiB. 34 // 35 // If this table is published, the EfiRuntimeServicesCode contains code only 36 // and it is EFI_MEMORY_RO; the EfiRuntimeServicesData contains data only 37 // and it is EFI_MEMORY_XP. 38 // 39 typedef struct { 40 UINT32 Version; 41 UINT32 NumberOfEntries; 42 UINT32 DescriptorSize; 43 UINT32 Reserved; 44 //EFI_MEMORY_DESCRIPTOR Entry[1]; 45 } EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE; 46 47 #define EDKII_PI_SMM_MEMORY_ATTRIBUTES_TABLE_VERSION 0x00000001 48 49 extern EFI_GUID gEdkiiPiSmmMemoryAttributesTableGuid; 50 51 #endif 52