<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-04-21T16:55:40+00:00</updated>
<entry>
<title>EmbeddedPkg: Add missing FreeAlignedPages() implementation</title>
<updated>2026-04-21T16:55:40+00:00</updated>
<author>
<name>Sami Mujawar</name>
<email>sami.mujawar@arm.com</email>
</author>
<published>2025-04-28T13:38:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=b5f11993237d547c2056fc6fb6ff917c6d6d9e0a'/>
<id>urn:sha1:b5f11993237d547c2056fc6fb6ff917c6d6d9e0a</id>
<content type='text'>
The PrePiMemoryAllocationLib supports AllocateAlignedPages(),
however is missing the corresponding FreeAlignedPages().

Although the FreeAlignedPages() in PrePiMemoryAllocationLib
does not support the ability to free pages in the PrePei Memory
Allocator and the allocated memory is lost, it would be good
to have an empty implementation of FreeAlignedPages() so that
implementations utilises the correct deallocation function.

Signed-off-by: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiMemoryAllocationLib: Update memory hob page alignment</title>
<updated>2026-02-11T02:10:26+00:00</updated>
<author>
<name>Antaeus Kleinert-Strand</name>
<email>antklein@microsoft.com</email>
</author>
<published>2026-01-21T17:48:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=756d5fb0aba845c529220d4a58effc0fe1304c70'/>
<id>urn:sha1:756d5fb0aba845c529220d4a58effc0fe1304c70</id>
<content type='text'>
When allocating Runtime memory the MemoryAllocation HOB's length needs
to meet the alignment requirements of Runtime memory. On AARCH64
architectures this alignment is not the default of 4KB.
Instead it is set by the RUNTIME_PAGE_ALLOCATION_GRANULARITY
definition, which is 64KB.

This change enforces the RUNTIME alignment as part of generating the
MemoryAllocationHob for runtime memory types.

Signed-off-by: Antaeus Kleinert-Strand &lt;antklein@microsoft.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: PrePiMemoryAllocationLib: Add AllocateCopyPool</title>
<updated>2026-01-15T17:10:46+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2025-12-19T19:03:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=198c9bf50697cd6780e1695941ba5e42479a195b'/>
<id>urn:sha1:198c9bf50697cd6780e1695941ba5e42479a195b</id>
<content type='text'>
ArmVirtPkg uses PrePiMemoryAllocationLib and PeiServicesLib in
the same module. PeiServicesLib depends on MemoryAllocationLib,
fulfilled by PrePiMemoryAllocationLib in this instance. However,
PeiServicesLib uses AllocateCopyPool() which is not provided in
PrePiMemoryAllocationLib. CLANGPDB AARCH64 finds this as a link
error. Other toolchains are optimizing the call out since that
code path is not used in this module.

This adds AllocateCopyPool() to PrePiMemoryAllocationLib to
satisfy the dependency.

Signed-off-by: Oliver Smith-Denny &lt;osde@microsoft.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiMemoryAllocationLib: Add reserved memory allocations</title>
<updated>2025-07-08T07:27:23+00:00</updated>
<author>
<name>Vishal Oliyil Kunnil</name>
<email>vishalo@qti.qualcomm.com</email>
</author>
<published>2025-06-24T01:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7f756db37a0ae94da1a3da8aafeb9061088482ef'/>
<id>urn:sha1:7f756db37a0ae94da1a3da8aafeb9061088482ef</id>
<content type='text'>
PrePiMemoryAllocationLib does not implement functions to allocate
EfiMemoryReservedType. These are implemented in other instances of
MemoryAllocationLib (Dxe, Uefi, PiSmmCore, SmmMemory).

Add AllocateReservedPages() and AllocateAlignedReservedPages()
functions to make it consistent with other MemoryAllocationLib
intstances.

Signed-off-by: Vishal Oliyil Kunnil &lt;vishalo@qti.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: compiler error due to arithmetic operation on void pointer</title>
<updated>2024-02-09T18:12:47+00:00</updated>
<author>
<name>Jayaprakash N</name>
<email>n.jayaprakash@intel.com</email>
</author>
<published>2024-02-06T16:19:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=dcf2e39dce00a5978f1c1a53a0fce04d0fdc9a3c'/>
<id>urn:sha1:dcf2e39dce00a5978f1c1a53a0fce04d0fdc9a3c</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4668

This commit fixes the issue reported in the BZ4668.
The EmbeddedPkg fails to compile with a compiler error
generated due to invalid/illegal arithmetic operation
on void pointers. It has been fixed by using explicit
type conversion of the void pointer to UINTN.

Cc: Rebecca Cran &lt;rebecca@bsdio.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Laszlo Ersek &lt;lersek@redhat.com&gt;
Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Jayaprakash N &lt;n.jayaprakash@intel.com&gt;
Signed-off-by: Jayaprakash N &lt;n.jayaprakash@intel.com&gt;
Reviewed-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Acked-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiMemoryAllocationLib: Add ReallocatePool</title>
<updated>2024-01-03T13:43:18+00:00</updated>
<author>
<name>Jeff Brasen via groups.io</name>
<email>jbrasen=nvidia.com@groups.io</email>
</author>
<published>2023-12-28T20:47:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0d39caefb95e0079ec1eaaadbd06f07c4f0b1901'/>
<id>urn:sha1:0d39caefb95e0079ec1eaaadbd06f07c4f0b1901</id>
<content type='text'>
Add implementation of ReallocatePool which is defined in the
MemoryAllocationLib header file to allow components to not
need special handling for PrePi module types.

Signed-off-by: Jeff Brasen &lt;jbrasen@nvidia.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePi: Check for enough space before aligning heap pointer</title>
<updated>2022-09-23T17:58:00+00:00</updated>
<author>
<name>Jeff Brasen</name>
<email>jbrasen@nvidia.com</email>
</author>
<published>2022-09-23T15:56:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ef9974b298583037a1686f08ee02798110a20ded'/>
<id>urn:sha1:ef9974b298583037a1686f08ee02798110a20ded</id>
<content type='text'>
Update check for enough space to occur prior to alignment offset.
This prevents cases where EfiFreeMemoryTop &lt; EfiFreeMemoryBottom.

Signed-off-by: Jeff Brasen &lt;jbrasen@nvidia.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Add AllocateRuntimePages in PrePiMemoryAllocationLib</title>
<updated>2022-09-06T07:21:42+00:00</updated>
<author>
<name>Min M Xu</name>
<email>min.m.xu@intel.com</email>
</author>
<published>2022-06-22T01:00:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=fb008dbe01f9d30bba4ff84f1825722644da40be'/>
<id>urn:sha1:fb008dbe01f9d30bba4ff84f1825722644da40be</id>
<content type='text'>
AllocateRuntimePages is used to allocate one or more 4KB pages of
type EfiRuntimeServicesData.

Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Abner Chang &lt;abner.chang@hpe.com&gt;
Cc: Daniel Schaefer &lt;daniel.schaefer@hpe.com&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Signed-off-by: Min Xu &lt;min.m.xu@intel.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e7108d0e9655b1795c94ac372b0449f28dd907df'/>
<id>urn:sha1:e7108d0e9655b1795c94ac372b0449f28dd907df</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the EmbeddedPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Andrew Fish &lt;afish@apple.com&gt;
</content>
</entry>
<entry>
<title>EmbeddedPkg/PrePiMemoryAllocationLib: use correct size for pool hob</title>
<updated>2021-01-08T13:37:57+00:00</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ard.biesheuvel@arm.com</email>
</author>
<published>2021-01-06T10:26:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=18198171559160386067f5ebe0d671d61ffd0679'/>
<id>urn:sha1:18198171559160386067f5ebe0d671d61ffd0679</id>
<content type='text'>
Use the correct type in the sizeof() expression to calculate the size
of the newly allocated EFI_HOB_MEMORY_POOL hob.

Link: https://bugzilla.tianocore.org/show_bug.cgi?id=3139
Signed-off-by: Ard Biesheuvel &lt;ard.biesheuvel@arm.com&gt;
Reviewed-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
</content>
</entry>
</feed>
