]>
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 | |
5 | # Memory Allocation Library that uses services from the SMM Services Table to \r | |
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 | |
11 | # Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
12 | # This program and the accompanying materials\r | |
13 | # are licensed and made available under the terms and conditions of the BSD License\r | |
14 | # which accompanies this distribution. The full text of the license may be found at\r | |
15 | # http://opensource.org/licenses/bsd-license.php.\r | |
16 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
17 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
18 | #\r | |
19 | ##\r | |
20 | \r | |
21 | [Defines]\r | |
22 | INF_VERSION = 0x00010005\r | |
23 | BASE_NAME = SmmMemoryAllocationProfileLib\r | |
24 | MODULE_UNI_FILE = SmmMemoryAllocationProfileLib.uni\r | |
25 | FILE_GUID = DC50729F-8633-47ab-8FD3-6939688CEE4C\r | |
26 | MODULE_TYPE = DXE_SMM_DRIVER\r | |
27 | VERSION_STRING = 1.0\r | |
28 | PI_SPECIFICATION_VERSION = 0x0001000A\r | |
29 | LIBRARY_CLASS = MemoryAllocationLib|DXE_SMM_DRIVER \r | |
30 | CONSTRUCTOR = SmmMemoryAllocationLibConstructor\r | |
31 | DESTRUCTOR = SmmMemoryAllocationLibDestructor\r | |
32 | LIBRARY_CLASS = MemoryProfileLib|DXE_SMM_DRIVER\r | |
33 | CONSTRUCTOR = SmmMemoryProfileLibConstructor\r | |
34 | \r | |
35 | #\r | |
36 | # VALID_ARCHITECTURES = IA32 X64\r | |
37 | #\r | |
38 | \r | |
39 | [Sources]\r | |
40 | MemoryAllocationLib.c\r | |
41 | SmmMemoryProfileLib.c\r | |
42 | \r | |
43 | [Packages]\r | |
44 | MdePkg/MdePkg.dec\r | |
45 | MdeModulePkg/MdeModulePkg.dec\r | |
46 | \r | |
47 | [LibraryClasses]\r | |
48 | DebugLib\r | |
49 | BaseMemoryLib\r | |
50 | SmmServicesTableLib\r | |
51 | UefiBootServicesTableLib\r | |
52 | \r | |
53 | [Protocols]\r | |
54 | gEfiSmmAccess2ProtocolGuid ## CONSUMES \r | |
55 | \r | |
56 | [Guids]\r | |
57 | gEdkiiMemoryProfileGuid ## SOMETIMES_CONSUMES ## GUID # Locate protocol\r | |
58 | gEdkiiSmmMemoryProfileGuid ## SOMETIMES_CONSUMES ## GUID # Locate protocol\r | |
59 | \r | |
60 | [Depex]\r | |
61 | gEfiSmmAccess2ProtocolGuid\r | |
62 | \r |