X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmulatorPkg%2FTimerDxe%2FTimer.c;h=8d246726aced9f54f3f21deb66434f7d7b3dfb7c;hb=34d808add3dc23aaa37e1c9edb2fcc2b50118367;hp=d19ced7dd9ac6a3e6e5cdfa30541c8f05cadbfe8;hpb=bb89ec1a7ec2f8d35033df9e47b3604925da3bd3;p=mirror_edk2.git
diff --git a/EmulatorPkg/TimerDxe/Timer.c b/EmulatorPkg/TimerDxe/Timer.c
index d19ced7dd9..8d246726ac 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.
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
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;
}
@@ -276,7 +276,7 @@ Returns:
EFI_SUCCESS - The soft timer interrupt was generated.
- EFI_UNSUPPORTEDT - The platform does not support the generation of soft timer interrupts.
+ EFI_UNSUPPORTED - The platform does not support the generation of soft timer interrupts.
**/
{