Michael D Kinney e78fb8a366 UnitTestFrameworkPkg/MemoryAllocationLibPosix: Add allocate below address
Add HostMemoryAllocationBelowAddressLib class and implementation that
uses OS specific services to perform pool and page allocations below
a specified address in a host based unit test application execution
environment. This library class is only required for mocking buffers
that are assumed to be below a specific address by code under test.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-01-21 05:02:38 +00:00

32 lines
868 B
INI

## @file
# Instance of Memory Allocation Library based on POSIX APIs
#
# Uses POSIX APIs malloc() and free() to allocate and free memory.
#
# Copyright (c) 2018 - 2020, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = MemoryAllocationLibPosix
MODULE_UNI_FILE = MemoryAllocationLibPosix.uni
FILE_GUID = A1672454-A3D3-4AAC-A86B-8D63132BBB91
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = MemoryAllocationLib|HOST_APPLICATION
LIBRARY_CLASS = HostMemoryAllocationBelowAddressLib|HOST_APPLICATION
[Sources]
MemoryAllocationLibPosix.c
AllocateBelowAddress.c
WinInclude.h
[Packages]
MdePkg/MdePkg.dec
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec
[LibraryClasses]
DebugLib