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