]>
Commit | Line | Data |
---|---|---|
022a9bf7 SZ |
1 | ## @file\r |
2 | # Instance of Memory Allocation Library using SMM Services Table,\r | |
3 | # with memory profile support.\r | |
4 | #\r | |
d1102dba | 5 | # Memory Allocation Library that uses services from the SMM Services Table to\r |
022a9bf7 SZ |
6 | # allocate and free memory, with memory profile support.\r |
7 | #\r | |
8 | # The implementation of this instance is copied from UefiMemoryAllocationLib\r | |
9 | # in MdePkg and updated to support both MemoryAllocationLib and MemoryProfileLib.\r | |
10 | #\r | |
d1102dba | 11 | # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 12 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
022a9bf7 SZ |
13 | #\r |
14 | ##\r | |
15 | \r | |
16 | [Defines]\r | |
17 | INF_VERSION = 0x00010005\r | |
18 | BASE_NAME = SmmMemoryAllocationProfileLib\r | |
19 | MODULE_UNI_FILE = SmmMemoryAllocationProfileLib.uni\r | |
20 | FILE_GUID = DC50729F-8633-47ab-8FD3-6939688CEE4C\r | |
21 | MODULE_TYPE = DXE_SMM_DRIVER\r | |
22 | VERSION_STRING = 1.0\r | |
23 | PI_SPECIFICATION_VERSION = 0x0001000A\r | |
d1102dba | 24 | LIBRARY_CLASS = MemoryAllocationLib|DXE_SMM_DRIVER\r |
022a9bf7 SZ |
25 | CONSTRUCTOR = SmmMemoryAllocationLibConstructor\r |
26 | DESTRUCTOR = SmmMemoryAllocationLibDestructor\r | |
27 | LIBRARY_CLASS = MemoryProfileLib|DXE_SMM_DRIVER\r | |
28 | CONSTRUCTOR = SmmMemoryProfileLibConstructor\r | |
29 | \r | |
30 | #\r | |
31 | # VALID_ARCHITECTURES = IA32 X64\r | |
32 | #\r | |
33 | \r | |
34 | [Sources]\r | |
35 | MemoryAllocationLib.c\r | |
36 | SmmMemoryProfileLib.c\r | |
37 | \r | |
38 | [Packages]\r | |
39 | MdePkg/MdePkg.dec\r | |
40 | MdeModulePkg/MdeModulePkg.dec\r | |
41 | \r | |
42 | [LibraryClasses]\r | |
43 | DebugLib\r | |
44 | BaseMemoryLib\r | |
45 | SmmServicesTableLib\r | |
46 | UefiBootServicesTableLib\r | |
47 | \r | |
48 | [Protocols]\r | |
d1102dba | 49 | gEfiSmmAccess2ProtocolGuid ## CONSUMES\r |
022a9bf7 SZ |
50 | \r |
51 | [Guids]\r | |
52 | gEdkiiMemoryProfileGuid ## SOMETIMES_CONSUMES ## GUID # Locate protocol\r | |
53 | gEdkiiSmmMemoryProfileGuid ## SOMETIMES_CONSUMES ## GUID # Locate protocol\r | |
54 | \r | |
55 | [Depex]\r | |
56 | gEfiSmmAccess2ProtocolGuid\r | |
57 | \r |