diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-12-11 05:14:16 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-12-11 05:14:16 +0000 |
commit | b2c5e194a80f85c733a57814dece83a4b816f07b (patch) | |
tree | 02fd5ba3fbde485b1189657ddf71c061b2473cf1 /MdeModulePkg/Core/Dxe | |
parent | bc4b81899a51aac86479bbbf403f78f8d6ff1e0a (diff) | |
download | edk2-b2c5e194a80f85c733a57814dece83a4b816f07b.zip edk2-b2c5e194a80f85c733a57814dece83a4b816f07b.tar.gz edk2-b2c5e194a80f85c733a57814dece83a4b816f07b.tar.bz2 |
Use AllocatePage for FvImage.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4385 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index d348c82..01d2c9f 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -894,8 +894,7 @@ Returns: if (FvAlignment < 8) {
FvAlignment = 8;
}
-
- AlignedBuffer = AllocateAlignedPool ((UINTN) BufferSize, (UINTN) FvAlignment);
+ AlignedBuffer = AllocateAlignedPages (EFI_SIZE_TO_PAGES (BufferSize), (UINTN) FvAlignment);
if (AlignedBuffer == NULL) {
Status = EFI_OUT_OF_RESOURCES;
} else {
@@ -926,7 +925,7 @@ Returns: }
if (AlignedBuffer != NULL) {
- FreeAlignedPool (AlignedBuffer);
+ FreeAlignedPages (AlignedBuffer, EFI_SIZE_TO_PAGES (BufferSize));
}
}
|