History log of /device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
34363594e3373601d41a5a5fcefefe64283a88f9 11-May-2015 Star Zeng <star.zeng@intel.com> MdePkg: Update PeiMemoryAllocationLib to allocate EfiReservedMemoryType memory directly.

The old implementation was to allocate EfiBootServicesData memory first,
and then update the MemoryType of memory allocation hob to
EfiReservedMemoryType.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17395 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
4c103c557a58a89138baa0f69e0698ce41337232 28-Aug-2014 Gao, Liming <liming.gao@intel.com> Don't initialize local variables in its declaration.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15972 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
6809c8723efbc37566db9cd35b725aa81b304094 22-Aug-2014 Gao, Liming <liming.gao@intel.com> Only reserve the aligned memory instead of reserving the unaligned memory in PeiMemoryAllocationLib

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15878 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
1346352d5210661c92ae4343c9a69d9aa3b730e1 31-Dec-2013 Liming Gao <liming.gao@intel.com> Update MemoryAllocationLib.AllocateAlignedPages API comments for memory overflow ASSERT case.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15033 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
1dde8b08dd0c575a54fa502d0563b9fa355a0e3b 12-Jul-2013 Liming Gao <liming.gao@intel.com> Update PeiMemoryAllocationLib instance to support AllocateReservedPages() API.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: michael.d.kinney@intel.com

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14466 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
58380e9c6174f23df78f777b4209c0fd75245cda 30-Jun-2010 myronporter <myronporter@6f19259b-4bc3-4df7-8a09-765794883524> Minor grammatical work--mostly adding periods. Items with ONLY period added did not have the heading date changed, but Items with content changes had heading copyright dates updated. Sending separately a list of files missing Doxygen @param and @return information. (PENDING)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10615 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
2fc59a003ed9104f9feebe0e418f2a04a50f3284 25-Jun-2010 myronporter <myronporter@6f19259b-4bc3-4df7-8a09-765794883524> Minor grammatical work--mostly adding periods. Items with ONLY period added did not have the heading date changed, but Items with content changes had heading copyright dates updated. Sending separately a list of files missing Doxygen @param and @return information. (PENDING)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10604 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
19388d2960b2fe0347da23799e93ccc52f540214 23-Apr-2010 hhtian <hhtian@6f19259b-4bc3-4df7-8a09-765794883524> Update the copyright notice format

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10415 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
56304569090565f5b8a24c365de38f47c7b0217c 12-May-2009 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Minor update the function interface for three re-allocate pool APIs to check the conformance of OldBuffer only when the memory allocation succeeds. In this way the assert condition is covered by CopyMem () API in BaseMemoryLib.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8296 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
446b94b0a1b98635d7db21d67fff158c6f153de4 11-May-2009 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Add conformance check for OldBuffer and size even if the memory allocation fails.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8294 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
6e10b70a62dee17d7913b20f5323c1e75bd13417 09-May-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Clarify that FreePages(), FreeAlignedPages(), and FreePool() may perform n actions if those operations are not possible. For example, the PEI Phase does not provide any services to free allocated pages or allocated pool memory.

Update comments in PeiMemoryAllocationLib and UefiMemoryAllocationLib to match updates to MemoryAllocationLib.h.

Add ASSERT() statements in PeiMemoryAllocationLib for the FreePages() and FreeAlignedPages() if Pages is 0.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8275 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
6babbe1f8cfe5b7e7657e0c14045bff608b6b04c 09-May-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Clarify ASSERT() conditions for Reallocate Pool functions.

Fix bug in Reallocate Pool functions in PEI Memory Allocation Lib. The wrong memory type was being allocated. This syncs the PEI Memory Allocation Lib with the fix that was previously made to the UEFI Memory Allocation Lib.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8269 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
808f4a6aed216b4cbaf76ce54e95066df192c522 10-Mar-2009 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Remove wrong comments in function header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7855 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
2297186d22231ffcf35cc5a03bdd60e8ac97558e 05-Dec-2008 jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> Comments have been checked with spec

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6873 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
0057fda6139b7694a9cdfdf9cb872ffaed25fcb7 01-Dec-2008 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Refine MdePkg library instances: Remove unnecessary EFIAPI modifier for library worker functions, fix some typos, etc

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6790 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
9638ba6d3f663ba64cb06193f22bc5c70356da64 26-Nov-2008 gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> Synchronize function comment in h file
with c file instance of this functions in MdePkg.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6732 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
3b6a71fcd405ecc809712197d080777fb860ae39 24-Nov-2008 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Add reallocate functions to the PEI Memory Allocation Library

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6706 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
8789c5e05f3ee45c7831d101caa157b11df3b43b 21-Nov-2008 gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> synchronize the MdePkg/Include/Library/MemoryAllocationLib.h,PalLib.h the MDE_Library_Spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6660 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
bb1d8ee66943c3d126abbfc007159eb0fe458927 30-Oct-2008 qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> Remove SafeFreePool from MemoryAllocationLib as this API's name is misleading. Its implementation only check if a pointer is NULL. If a garbage pointer is passed in, the gBS->FreePool will still ASSERT in debug build and return error code.

It is recommended that module writer should keep track how a pointer is allocated and free it after use.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6305 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
9e6fa6d24598927d90a253e038f7a5d5de994029 24-Aug-2008 lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> Clean up DxeMemoryAllocationLib and PeiMemoryAllocationLib.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5722 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
dd1245006f07edf691a0668cc16bb88ef5611635 20-Aug-2008 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Remove allocate aligned pool services.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5696 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
f80b0830db453419ac5ad2b3f12a8b7c2bbdc29a 14-Jul-2008 yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> Code scrub:
MdePkg/Library/BaseCacheMaintenanceLib
MdePkg/Library/BaseDebugLibNull
MdePkg/Library/BaseIoLibIntrinsic
MdePkg/Library/BaseLib
MdePkg/Library/BasePeCoffLib
MdePkg/Library/CpuLib
MdePkg/Library/DxeMemoryLib
MdePkg/Library/DxePiLib
MdePkg/Library/PeiIoLib
MdePkg/Library/PeiMemoryLib
MdePkg/Library/UefiBootServicesTableLib
MdePkg/Library/UefiLib
MdePkg/Library/UefiRuntimeLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5464 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
7d582d6b499ed30268da033cc17fbde6e7b02a9d 21-Jan-2008 qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> UEFI HII: Merge UEFI HII support changes from branch.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4600 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
1c280088ec83160a5f190b3d0ba796b224ee23b3 04-Sep-2007 qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> Merge the PI enabling works from the branch

First round of PI enabling work:
1) PiPeiCis changes (CONST, EFI_PEI_FILE_HANDLE.. etc)
2) Make use of FirmwareVolume 2 protocol.
3) Verified for Nt32Pkg and real platform for S3.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3772 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
c892d8464468618b0aa3c7f35edbdfbc7cc24ee5 20-Jul-2007 vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> remove some comments introduced by tools.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3388 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
d5b86e43cf23787da85fcf862807c1f6714bfac2 13-Jul-2007 AJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524> Removed MdePkg usage of ModuleName: in file headers

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3217 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
c7d265a94a3ee2517430e4f19f5b24482e5e7132 22-Jun-2007 yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> Checked in part of MDE library instances following PI and UEFI. It includes:

1) UefiLib adds features of RFC 3066/Iso639 language string and driver model protocols installation.

2) PeiCoreEntryPoint following PI.

3) UefiDriverEntryPoint following UEFI/EFI.

4) PeiServicesTablePointerLib following PI for IPF and x86.

5) Remove many CommonHeader.h. If there is only one C file in module, we should add the common headers in C file instead of creating a new CommonHeader.h.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2723 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
e386b444c88b01c5a14ca846b6ba10dcf5536e05 22-Jun-2007 vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> Import some Pei and Dxe related instances for MdePkg.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2712 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
586cd1f1f4129ab7ec24543d4968801e17cc870b 01-Jun-2007 lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> Moved the MdePkg to OldMdePkg so that new code in MdePkg does not break existing builds. Also updated the SPD and FPD files UiNames

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2616 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
582510249f2fb1334e507b99421b9485f6b89159 25-Jan-2007 xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> Make MDE package pass intel IPF compiler with /W4 /WX switched on.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2312 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
511710d68f477e0210ae1830769e5d0cde4ea36a 03-Nov-2006 cwu11 <cwu11@6f19259b-4bc3-4df7-8a09-765794883524> 1. Add the fix for the following Bugs:
i) BMM_FAKE_NV_DATA definition inconsistent in bm.vfr and BootMain.h
(EdkNt32Pkg\Dxe\PlatformBdsDxe\Generic\BootMaint\BootMain.h)
ii) Change some files’ EOL(end of line) format to DOS. Some file use even mixed style EOL.
(EdkModulePkg\Universal\DevicePath\Dxe\DevicePath.c, DevicepathFromText.c, DevicePathUtilities.c;
EdkModulePkg\Universal\Disk\DiskIo\Dxe\diskIo.c; MdePkg\Library\UefiLib\UefiNotTiano.c)
iii) Change some illegal characters in many files, the problem is mainly connected with people using Chinese Input method to input symbols such as ' " - ?, etc. Multiple files are influenced.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1890 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
1f33a17ff1678bb0e4c00757489aa417a18061e4 23-Jul-2006 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Adjust coding style for MemoryAllocationLib.
Add function header for an internal function of PciExpressLib
Fix a typo in one comment of UefiLib
Remove BaseSmbusLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1075 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
9a462b415d8c9636bfb29a2cfb141e69c3c092b7 04-Jun-2006 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> UefiLib:
Add two new interfaces of EfiCreateEventLegacyBootEx & EfiCreateEventReadyToBootEx
Fix a bug in EfiCreateEventLegacyBoot & EfiCreateEventReadyToBoot. (#51)
PciLib:
Add missing ASSERT()s in PciReadBuffer() & PciWriteBuffer() (#70)
IoLib
Add ASSERT()s to check alignment.
MemoryAllocationLib:
For AllocateXXXCopyBuffer(). Add ASSERT()s for cases when allocations fails.
BaseLib:
Change the return type of InternalMathModU64x32 from UINT64 to UINT32


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@416 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
a3657e3e7aaaccb1b9ea1b41a72d4564452e272d 25-May-2006 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> MemoryAllocationLib: For boundary case: “AllocationSize + OverAllocationSize >= 4G”
DxeMemoryAllocationLib: Change the behavior from returning NULL to ASSERT ()
PeiMemoryAllocationLib: Add ASSERT ()
I also add ASSERT () in Pei Service AllocatePool () to catch if allocation size > 64K
DebugLib:
Header file (DebugLib.h): Fix an issue in ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid).
In contrast with LocateProtocol (), the first & second parameter type of HandleProtocol () is EFI_HANDLE & EFI_GUID respectively.
UefiLib:
For UnicodeStringDisplayLength (CONST CHAR8 *String), return 0 if String is NULL.
BasePrintLib:
Add missing “EFIAPI” to UnicodeValueToString() and AsciiValueToString() and move their definitions from PrintLibInternal.c to PrintLib.c.
Fix the comments error(Maximum Length TIME”)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@275 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c
878ddf1fc3540a715f63594ed22b6929e881afb4 22-Apr-2006 bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> Initial import.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c