diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-27 14:29:23 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-27 14:29:23 +0000 |
commit | 9c4ac31cca01b4a503c36616770ea3157bf3bb9e (patch) | |
tree | 2da9349c7a4a732e3ebc27981a095b1db3146f35 /MdeModulePkg/Core/Dxe/FwVol/FwVol.c | |
parent | fb53e6cc348e96709da625a2334faeabd4f31523 (diff) | |
download | edk2-9c4ac31cca01b4a503c36616770ea3157bf3bb9e.zip edk2-9c4ac31cca01b4a503c36616770ea3157bf3bb9e.tar.gz edk2-9c4ac31cca01b4a503c36616770ea3157bf3bb9e.tar.bz2 |
Clean up DxeCore to remove duplicate memory allocation & device path utility services in Library.c.DxeCore should use MemoryAllocationLib & DevicePathLib for these API.
Minor cleanup the coding style: #include <DxeMain.h> should be changed to #include "DxeMain.h" since "DxeMain.h" is not pubic header fie.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5742 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/FwVol/FwVol.c')
-rw-r--r-- | MdeModulePkg/Core/Dxe/FwVol/FwVol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c index 8c91641..48b309f 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c @@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/
-#include <DxeMain.h>
+#include "DxeMain.h"
#define KEYSIZE sizeof (UINTN)
@@ -87,7 +87,7 @@ GetFwVolHeader ( //
// Allocate a buffer for the caller
//
- *FwVolHeader = CoreAllocateBootServicesPool (TempFvh.HeaderLength);
+ *FwVolHeader = AllocatePool (TempFvh.HeaderLength);
if (*FwVolHeader == NULL) {
return EFI_OUT_OF_RESOURCES;
}
@@ -210,7 +210,7 @@ FvCheck ( // the header to check to make sure the volume is valid
//
Size = (UINTN)(FwVolHeader->FvLength - FwVolHeader->HeaderLength);
- FvDevice->CachedFv = CoreAllocateBootServicesPool (Size);
+ FvDevice->CachedFv = AllocatePool (Size);
if (FvDevice->CachedFv == NULL) {
return EFI_OUT_OF_RESOURCES;
@@ -336,7 +336,7 @@ FvCheck ( //
// Create a FFS list entry for each non-deleted file
//
- FfsFileEntry = CoreAllocateZeroBootServicesPool (sizeof (FFS_FILE_LIST_ENTRY));
+ FfsFileEntry = AllocateZeroPool (sizeof (FFS_FILE_LIST_ENTRY));
if (FfsFileEntry == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto Done;
@@ -465,7 +465,7 @@ NotifyFwVolBlock ( //
// No FwVol protocol on the handle so create a new one
//
- FvDevice = CoreAllocateCopyPool (sizeof (FV_DEVICE), &mFvDevice);
+ FvDevice = AllocateCopyPool (sizeof (FV_DEVICE), &mFvDevice);
if (FvDevice == NULL) {
return;
}
|