]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseTimerLibLocalApic/Ebc/EbcTimerLib.c
Make EDK Module Package pass Intel IPF compiler with /Ox switch.
[mirror_edk2.git] / MdePkg / Library / BaseTimerLibLocalApic / Ebc / EbcTimerLib.c
index 7de360a0e67cbe57d0dac487af06e3c0e9d9ea37..416a44f4ea85348518849e4b9b9a01a88ae3b939 100644 (file)
@@ -21,7 +21,7 @@
 \r
   @param  MicroSeconds  The minimum number of microseconds to delay.\r
 \r
-  @return Return value depends on implementation.\r
+  @return MicroSeconds\r
 \r
 **/\r
 UINTN\r
@@ -34,7 +34,7 @@ MicroSecondDelay (
   // EBC architecture does not support local APIC timer.\r
   //\r
   ASSERT (FALSE);\r
-  return 0;\r
+  return MicroSeconds;\r
 }\r
 \r
 /**\r
@@ -44,7 +44,7 @@ MicroSecondDelay (
 \r
   @param  NanoSeconds The minimum number of nanoseconds to delay.\r
 \r
-  @return Return value depends on implementation.\r
+  @return NanoSeconds\r
 \r
 **/\r
 UINTN\r
@@ -57,7 +57,7 @@ NanoSecondDelay (
   // EBC architecture does not support local APIC timer.\r
   //\r
   ASSERT (FALSE);\r
-  return 0;\r
+  return NanoSeconds;\r
 }\r
 \r
 /**\r
@@ -111,13 +111,13 @@ GetPerformanceCounter (
 UINT64\r
 EFIAPI\r
 GetPerformanceCounterProperties (\r
-  IN      UINT64                    *StartValue,\r
-  IN      UINT64                    *EndValue\r
+  OUT      UINT64                    *StartValue,  OPTIONAL\r
+  OUT      UINT64                    *EndValue     OPTIONAL\r
   )\r
 {\r
   //\r
   // EBC architecture does not support local APIC timer.\r
   //\r
   ASSERT (FALSE);\r
-  return 0;  \r
+  return 0;\r
 }\r