]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/TimerDxe/Timer.c
EmulatorPkg: Fix typos in comments
[mirror_edk2.git] / EmulatorPkg / TimerDxe / Timer.c
index d19ced7dd9ac6a3e6e5cdfa30541c8f05cadbfe8..8d246726aced9f54f3f21deb66434f7d7b3dfb7c 100644 (file)
@@ -5,7 +5,7 @@
   timer service.  In the future, the Thread creation should possibly be\r
   abstracted by the CPU architectural protocol\r
 \r
   timer service.  In the future, the Thread creation should possibly be\r
   abstracted by the CPU architectural protocol\r
 \r
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -74,7 +74,7 @@ TimerCallback (UINT64 DeltaMs)
     // registered. Assume all other handlers are legal.\r
     //\r
     if (CallbackFunction != NULL) {\r
     // registered. Assume all other handlers are legal.\r
     //\r
     if (CallbackFunction != NULL) {\r
-      CallbackFunction ((UINT64) (DeltaMs * 10000));\r
+      CallbackFunction (MultU64x32 (DeltaMs, 10000));\r
     }\r
   }\r
 \r
     }\r
   }\r
 \r
@@ -246,7 +246,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  *TimerPeriod = mTimerPeriodMs * 10000;\r
+  *TimerPeriod = MultU64x32 (mTimerPeriodMs, 10000);\r
 \r
   return EFI_SUCCESS;\r
 }\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -276,7 +276,7 @@ Returns:
 \r
   EFI_SUCCESS       - The soft timer interrupt was generated.\r
 \r
 \r
   EFI_SUCCESS       - The soft timer interrupt was generated.\r
 \r
-  EFI_UNSUPPORTEDT  - The platform does not support the generation of soft timer interrupts.\r
+  EFI_UNSUPPORTED   - The platform does not support the generation of soft timer interrupts.\r
 \r
 **/\r
 {\r
 \r
 **/\r
 {\r