summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/TimerDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-15 00:03:25 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-15 00:03:25 +0000
commite148512e5132e38accf2fe8188a9bdf9d1de02d8 (patch)
treed49269a1679a3e0c29f07fb79b4124b745bc7b42 /EmulatorPkg/TimerDxe
parent33efdf51b0f123259dec0bfcff49af189b46c411 (diff)
downloadedk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.tar.gz
edk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.tar.bz2
edk2-e148512e5132e38accf2fe8188a9bdf9d1de02d8.zip
EmulatorPkg: Fix Visual Studio build for IA32 & X64
This code is untested since there is currently no 'host' component for Win32/Win64. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13633 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmulatorPkg/TimerDxe')
-rw-r--r--EmulatorPkg/TimerDxe/Timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/EmulatorPkg/TimerDxe/Timer.c b/EmulatorPkg/TimerDxe/Timer.c
index d19ced7dd9..5230a9625e 100644
--- a/EmulatorPkg/TimerDxe/Timer.c
+++ b/EmulatorPkg/TimerDxe/Timer.c
@@ -5,7 +5,7 @@
timer service. In the future, the Thread creation should possibly be
abstracted by the CPU architectural protocol
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -74,7 +74,7 @@ TimerCallback (UINT64 DeltaMs)
// registered. Assume all other handlers are legal.
//
if (CallbackFunction != NULL) {
- CallbackFunction ((UINT64) (DeltaMs * 10000));
+ CallbackFunction (MultU64x32 (DeltaMs, 10000));
}
}
@@ -246,7 +246,7 @@ Returns:
return EFI_INVALID_PARAMETER;
}
- *TimerPeriod = mTimerPeriodMs * 10000;
+ *TimerPeriod = MultU64x32 (mTimerPeriodMs, 10000);
return EFI_SUCCESS;
}