]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/PlatformBds/Generic/MemoryTest.c
1. Perfect libraries MSA files
[mirror_edk2.git] / EdkNt32Pkg / Dxe / PlatformBds / Generic / MemoryTest.c
index d4e5bc50efc0dad52310450c9e6271713ac9d756..40467c0e4f30454dcc917a84d3336b34978ce783 100644 (file)
@@ -1,13 +1,13 @@
 /*++\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
@@ -38,19 +38,19 @@ PlatformBdsShowProgress (
 /*++\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
@@ -203,19 +203,19 @@ BdsMemoryTest (
 /*++\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
@@ -274,7 +274,7 @@ Returns:
                   &GenMemoryTest\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Pos);\r
+    FreePool (Pos);\r
     return EFI_SUCCESS;\r
   }\r
 \r
@@ -291,7 +291,7 @@ Returns:
     // 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
@@ -300,7 +300,7 @@ Returns:
 \r
   if (TmpStr != NULL) {\r
     gST->ConOut->OutputString (gST->ConOut, TmpStr);\r
-    gBS->FreePool (TmpStr);\r
+    FreePool (TmpStr);\r
   }\r
 \r
   do {\r
@@ -317,7 +317,7 @@ Returns:
         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
@@ -333,7 +333,7 @@ Returns:
       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
@@ -346,7 +346,7 @@ Returns:
           TestPercent,\r
           (UINTN) PreviousValue\r
           );\r
-        gBS->FreePool (TmpStr);\r
+        FreePool (TmpStr);\r
       }\r
     }\r
 \r
@@ -365,7 +365,7 @@ Returns:
             100,\r
             (UINTN) PreviousValue\r
             );\r
-          gBS->FreePool (TmpStr);\r
+          FreePool (TmpStr);\r
         }\r
 \r
         gST->ConOut->SetCursorPosition (gST->ConOut, 0, 0);\r
@@ -389,7 +389,7 @@ Done:
   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
@@ -405,7 +405,7 @@ Done:
     (UINTN) PreviousValue\r
     );\r
 \r
-  gBS->FreePool (Pos);\r
+  FreePool (Pos);\r
 \r
   DataSize = sizeof (Value);\r
   Status = gRT->GetVariable (\r