Revision: 14478
          http://sourceforge.net/p/edk2/code/14478
Author:   oliviermartin
Date:     2013-07-17 06:24:15 +0000 (Wed, 17 Jul 2013)
Log Message:
-----------
EmbeddedPkg/PrePiMemoryAllocationLib: Added dummy FreePages()

This function is exposed by the MemoryAllocationLib header.
A dummy FreePages() function has been added to fix modules depending on
this library and this function.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c

Modified: 
trunk/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c
===================================================================
--- 
trunk/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c   
    2013-07-17 06:23:07 UTC (rev 14477)
+++ 
trunk/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c   
    2013-07-17 06:24:15 UTC (rev 14478)
@@ -130,8 +130,34 @@
 }
 
 
+/**
+  Frees one or more 4KB pages that were previously allocated with one of the 
page allocation
+  functions in the Memory Allocation Library.
 
+  Frees the number of 4KB pages specified by Pages from the buffer specified 
by Buffer.  Buffer
+  must have been allocated on a previous call to the page allocation services 
of the Memory
+  Allocation Library.  If it is not possible to free allocated pages, then 
this function will
+  perform no actions.
 
+  If Buffer was not allocated with a page allocation function in the Memory 
Allocation Library,
+  then ASSERT().
+  If Pages is zero, then ASSERT().
+
+  @param  Buffer                Pointer to the buffer of pages to free.
+  @param  Pages                 The number of 4 KB pages to free.
+
+**/
+VOID
+EFIAPI
+FreePages (
+  IN VOID   *Buffer,
+  IN UINTN  Pages
+  )
+{
+  // For now, we do not support the ability to free pages in the PrePei Memory 
Allocator.
+  // The allocated memory is lost.
+}
+
 /**
   Allocates a buffer of type EfiBootServicesData.
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to