summaryrefslogtreecommitdiff
path: root/EdkNt32Pkg/Library/EdkGenericBdsLib
diff options
context:
space:
mode:
authordtang2 <dtang2@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-03 02:40:21 +0000
committerdtang2 <dtang2@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-03 02:40:21 +0000
commitcb44bbdb8e15fc40362e6b0542be196c15c04615 (patch)
tree7b11e972904e86a7a9a2af445339d2529745d93f /EdkNt32Pkg/Library/EdkGenericBdsLib
parente4f1ff6cf9c37627f59d099d650e2c3972f9ecaa (diff)
downloadedk2-platforms-cb44bbdb8e15fc40362e6b0542be196c15c04615.tar.xz
1. Bug fix for "EDK GenericBds WriteBootToOsPerformanceData() uses AcpiReclaimMemory";
2. Bug fix for "[FT] in new BDS, add a long item in Boot Option will cause an empty line appear"; 3. Bug fix for "In "SetBootNextValue" page,description does not display properly" git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1889 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkNt32Pkg/Library/EdkGenericBdsLib')
-rw-r--r--EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c b/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c
index c7b6bc9d5d..80b98563f0 100644
--- a/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c
+++ b/EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.c
@@ -232,9 +232,10 @@ Returns:
//
// Allocate a block of memory that contain performance data to OS
//
+ mAcpiLowMemoryBase = 0xFFFFFFFF;
Status = gBS->AllocatePages (
- AllocateAnyPages,
- EfiACPIReclaimMemory,
+ AllocateMaxAddress,
+ EfiReservedMemoryType,
4,
&mAcpiLowMemoryBase
);
@@ -242,7 +243,7 @@ Returns:
return ;
}
- mAcpiLowMemoryLength = 0x1000;
+ mAcpiLowMemoryLength = EFI_PAGES_TO_SIZE(4);
Ptr = (UINT8 *) ((UINT32) mAcpiLowMemoryBase + sizeof (PERF_HEADER));
LimitCount = (mAcpiLowMemoryLength - sizeof (PERF_HEADER)) / sizeof (PERF_DATA);
@@ -261,7 +262,7 @@ Returns:
&Cpu
);
if (EFI_ERROR (Status)) {
- gBS->FreePages (mAcpiLowMemoryBase, 1);
+ gBS->FreePages (mAcpiLowMemoryBase, 4);
return ;
}
//
@@ -269,7 +270,7 @@ Returns:
//
Status = Cpu->GetTimerValue (Cpu, 0, &(CurrentTicker), &TimerPeriod);
if (EFI_ERROR (Status)) {
- gBS->FreePages (mAcpiLowMemoryBase, 1);
+ gBS->FreePages (mAcpiLowMemoryBase, 4);
return ;
}
@@ -294,7 +295,7 @@ Returns:
&Handles
);
if (EFI_ERROR (Status)) {
- gBS->FreePages (mAcpiLowMemoryBase, 1);
+ gBS->FreePages (mAcpiLowMemoryBase, 4);
return ;
}
//