\r
Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer. Buffer\r
must have been allocated on a previous call to the page allocation services of the Memory\r
- Allocation Library.\r
+ Allocation Library. If it is not possible to free allocated pages, then this function will\r
+ peform no actions.\r
\r
If Buffer was not allocated with a page allocation function in the Memory Allocation Library,\r
then ASSERT().\r
IN UINTN Pages\r
)\r
{\r
+ ASSERT (Pages != 0);\r
//\r
// PEI phase does not support to free pages, so leave it as NOP.\r
//\r
\r
Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer. Buffer\r
must have been allocated on a previous call to the aligned page allocation services of the Memory\r
- Allocation Library.\r
+ Allocation Library. If it is not possible to free allocated pages, then this function will \r
+ peform no actions.\r
\r
If Buffer was not allocated with an aligned page allocation function in the Memory Allocation\r
Library, then ASSERT().\r
IN UINTN Pages\r
)\r
{\r
+ ASSERT (Pages != 0);\r
//\r
// PEI phase does not support to free pages, so leave it as NOP.\r
//\r
Memory Allocation Library.\r
\r
Frees the buffer specified by Buffer. Buffer must have been allocated on a previous call to the\r
- pool allocation services of the Memory Allocation Library.\r
+ pool allocation services of the Memory Allocation Library. If it is not possible to free pool\r
+ resources, then this function will peform no actions.\r
\r
If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,\r
then ASSERT().\r