\r
**/\r
\r
-#include <DxeMain.h>\r
+#include "DxeMain.h"\r
\r
//\r
// Local defines and typedefs\r
//\r
// Callee allocated buffer. Allocate buffer and return size.\r
//\r
- *Buffer = CoreAllocateBootServicesPool (CopySize);\r
+ *Buffer = AllocatePool (CopySize);\r
if (*Buffer == NULL) {\r
Status = EFI_OUT_OF_RESOURCES;\r
goto GetSection_Done;\r
//\r
// Allocate a new node\r
//\r
- *ChildNode = CoreAllocateBootServicesPool (sizeof (CORE_SECTION_CHILD_NODE));\r
+ *ChildNode = AllocatePool (sizeof (CORE_SECTION_CHILD_NODE));\r
Node = *ChildNode;\r
if (Node == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
//\r
if (CompressionHeader->UncompressedLength > 0) {\r
NewStreamBufferSize = CompressionHeader->UncompressedLength;\r
- NewStreamBuffer = CoreAllocateBootServicesPool (NewStreamBufferSize);\r
+ NewStreamBuffer = AllocatePool (NewStreamBufferSize);\r
if (NewStreamBuffer == NULL) {\r
CoreFreePool (Node);\r
return EFI_OUT_OF_RESOURCES;\r
ASSERT_EFI_ERROR (Status);\r
ASSERT (NewStreamBufferSize == CompressionHeader->UncompressedLength);\r
\r
- ScratchBuffer = CoreAllocateBootServicesPool (ScratchSize);\r
+ ScratchBuffer = AllocatePool (ScratchSize);\r
if (ScratchBuffer == NULL) {\r
CoreFreePool (Node);\r
CoreFreePool (NewStreamBuffer);\r
//\r
// Allocate a new stream\r
//\r
- NewStream = CoreAllocateBootServicesPool (sizeof (CORE_SECTION_STREAM_NODE));\r
+ NewStream = AllocatePool (sizeof (CORE_SECTION_STREAM_NODE));\r
if (NewStream == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
// data in\r
//\r
if (SectionStreamLength > 0) {\r
- NewStream->StreamBuffer = CoreAllocateBootServicesPool (SectionStreamLength);\r
+ NewStream->StreamBuffer = AllocatePool (SectionStreamLength);\r
if (NewStream->StreamBuffer == NULL) {\r
CoreFreePool (NewStream);\r
return EFI_OUT_OF_RESOURCES;\r
//\r
// Allocate scratch buffer\r
//\r
- ScratchBuffer = CoreAllocateBootServicesPool (ScratchBufferSize);\r
+ ScratchBuffer = AllocatePool (ScratchBufferSize);\r
if (ScratchBuffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
// Allocate output buffer\r
//\r
- AllocatedOutputBuffer = CoreAllocateBootServicesPool (OutputBufferSize);\r
+ AllocatedOutputBuffer = AllocatePool (OutputBufferSize);\r
if (AllocatedOutputBuffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r