summaryrefslogtreecommitdiff
path: root/EdkModulePkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-22 09:34:49 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-22 09:34:49 +0000
commitc91c4f470e58765856fbcec7e88d68d498ed334e (patch)
treea8b2b880feb1e52d68155588cdd97fc007035468 /EdkModulePkg
parentcb41bea732ae6319ebbc9ccfa940e7433aae7a18 (diff)
downloadedk2-platforms-c91c4f470e58765856fbcec7e88d68d498ed334e.tar.xz
Need no zero pool for improving performance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2500 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/Core/Dxe/FwVol/FwVol.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/EdkModulePkg/Core/Dxe/FwVol/FwVol.c b/EdkModulePkg/Core/Dxe/FwVol/FwVol.c
index d8137d79c6..2e92a8b921 100644
--- a/EdkModulePkg/Core/Dxe/FwVol/FwVol.c
+++ b/EdkModulePkg/Core/Dxe/FwVol/FwVol.c
@@ -1,6 +1,9 @@
-/*++
-
-Copyright (c) 2006, Intel Corporation
+/**@file
+ Firmware File System driver that produce Firmware Volume protocol.
+ Layers on top of Firmware Block protocol to produce a file abstraction
+ of FV based files.
+
+Copyright (c) 2006 - 2007 Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -9,17 +12,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-Module Name:
-
- FwVol.c
-
-Abstract:
-
- Firmware File System driver that produce Firmware Volume protocol.
- Layers on top of Firmware Block protocol to produce a file abstraction
- of FV based files.
-
---*/
+**/
#include <DxeMain.h>
@@ -228,7 +221,8 @@ Returns:
// the header to check to make sure the volume is valid
//
Size = (UINTN)(FwVolHeader->FvLength - FwVolHeader->HeaderLength);
- FvDevice->CachedFv = CoreAllocateZeroBootServicesPool (Size);
+ FvDevice->CachedFv = CoreAllocateBootServicesPool (Size);
+
if (FvDevice->CachedFv == NULL) {
return EFI_OUT_OF_RESOURCES;
}