/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
/*++\r
\r
Routine Description:\r
- \r
+\r
Show progress bar with title above it. It only works in UGA mode.\r
\r
Arguments:\r
- \r
+\r
TitleForeground - Foreground color for Title.\r
TitleBackground - Background color for Title.\r
Title - Title above progress bar.\r
ProgressColor - Progress bar color.\r
Progress - Progress (0-100)\r
\r
-Returns: \r
- \r
+Returns:\r
+\r
EFI_STATUS - Success update the progress bar\r
\r
--*/\r
/*++\r
\r
Routine Description:\r
- \r
- Perform the memory test base on the memory test intensive level, \r
+\r
+ Perform the memory test base on the memory test intensive level,\r
and update the memory resource.\r
\r
Arguments:\r
- \r
+\r
Level - The memory test intensive level.\r
\r
-Returns: \r
- \r
+Returns:\r
+\r
EFI_STATUS - Success test all the system memory and update\r
the memory resource\r
- \r
+\r
--*/\r
{\r
EFI_STATUS Status;\r
&GenMemoryTest\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Pos);\r
+ FreePool (Pos);\r
return EFI_SUCCESS;\r
}\r
\r
// do the test, and then the status of EFI_NO_MEDIA will be returned by\r
// "MemoryTestInit". So it does not need to test memory again, just return.\r
//\r
- gBS->FreePool (Pos);\r
+ FreePool (Pos);\r
return EFI_SUCCESS;\r
}\r
\r
\r
if (TmpStr != NULL) {\r
gST->ConOut->OutputString (gST->ConOut, TmpStr);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
\r
do {\r
PrintXY (10, 10, NULL, NULL, TmpStr);\r
gST->ConOut->SetCursorPosition (gST->ConOut, 0, 4);\r
gST->ConOut->OutputString (gST->ConOut, TmpStr);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
\r
ASSERT (0);\r
TmpStr = GetStringById (STRING_TOKEN (STR_MEMORY_TEST_PERCENT));\r
if (TmpStr != NULL) {\r
BdsLibOutputStrings (gST->ConOut, StrPercent, TmpStr, NULL);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
\r
TmpStr = GetStringById (STRING_TOKEN (STR_PERFORM_MEM_TEST));\r
TestPercent,\r
(UINTN) PreviousValue\r
);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
}\r
\r
100,\r
(UINTN) PreviousValue\r
);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
\r
gST->ConOut->SetCursorPosition (gST->ConOut, 0, 0);\r
TmpStr = GetStringById (STRING_TOKEN (STR_MEM_TEST_COMPLETED));\r
if (TmpStr != NULL) {\r
StrCat (StrTotalMemory, TmpStr);\r
- gBS->FreePool (TmpStr);\r
+ FreePool (TmpStr);\r
}\r
\r
gST->ConOut->ClearScreen (gST->ConOut);\r
(UINTN) PreviousValue\r
);\r
\r
- gBS->FreePool (Pos);\r
+ FreePool (Pos);\r
\r
DataSize = sizeof (Value);\r
Status = gRT->GetVariable (\r