]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/TimerDxe/Timer.c
EmulatorPkg: Fix Visual Studio build for IA32 & X64
[mirror_edk2.git] / EmulatorPkg / TimerDxe / Timer.c
index d19ced7dd9ac6a3e6e5cdfa30541c8f05cadbfe8..5230a9625e97a6843a5cc13b2903d140bc705666 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
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2012, 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
@@ -74,7 +74,7 @@ TimerCallback (UINT64 DeltaMs)
     // 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
@@ -246,7 +246,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  *TimerPeriod = mTimerPeriodMs * 10000;\r
+  *TimerPeriod = MultU64x32 (mTimerPeriodMs, 10000);\r
 \r
   return EFI_SUCCESS;\r
 }\r