]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Misc/Stall.c
Correct error status to EFI_NOT_FOUND when the image can't be got.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Misc / Stall.c
index db32c1fa3adbb2d91d48b85931e1801a24feb424..175e1f5c35251b0cd9b6207aec89b657915db809 100644 (file)
@@ -1,8 +1,7 @@
-/** @file \r
-\r
+/** @file\r
   UEFI Miscellaneous boot Services Stall service implementation\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\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
@@ -17,32 +16,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // Include statements\r
 //\r
 \r
-#include <DxeMain.h>\r
-\r
+#include "DxeMain.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-CoreStall (\r
-  IN UINTN            Microseconds\r
-  )\r
-/*++\r
 \r
-Routine Description:\r
 \r
+/**\r
   Introduces a fine-grained stall.\r
 \r
-Arguments:\r
-\r
-  Microseconds      The number of microseconds to stall execution\r
+  @param  Microseconds           The number of microseconds to stall execution.\r
 \r
-Returns:\r
+  @retval EFI_SUCCESS            Execution was stalled for at least the requested\r
+                                 amount of microseconds.\r
+  @retval EFI_NOT_AVAILABLE_YET  gMetronome is not available yet\r
 \r
-  EFI_SUCCESS            - Execution was stalled for at least the requested amount\r
-                           of microseconds.\r
-\r
-  EFI_NOT_AVAILABLE_YET  - gMetronome is not available yet\r
-\r
---*/\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+CoreStall (\r
+  IN UINTN            Microseconds\r
+  )\r
 {\r
   UINT32  Counter;\r
   UINT32  Remainder;\r
@@ -54,7 +46,7 @@ Returns:
   //\r
   // Calculate the number of ticks by dividing the number of microseconds by\r
   // the TickPeriod.\r
-  // Calcullation is based on 100ns unit.\r
+  // Calculation is based on 100ns unit.\r
   //\r
   Counter = (UINT32) DivU64x32Remainder (\r
                        Microseconds * 10,\r