Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
/** @file\r
UEFI Miscellaneous boot Services Stall service implementation\r
\r
/** @file\r
UEFI Miscellaneous boot Services Stall service implementation\r
\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
// Counter = Microseconds * 10 / gMetronome->TickPeriod\r
// 0x1999999999999999 = (2^64 - 1) / 10\r
//\r
// Counter = Microseconds * 10 / gMetronome->TickPeriod\r
// 0x1999999999999999 = (2^64 - 1) / 10\r
//\r
- if (Microseconds > 0x1999999999999999ULL) {\r
+ if ((UINT64) Microseconds > 0x1999999999999999ULL) {\r
//\r
// Microseconds is too large to multiple by 10 first. Perform the divide \r
// operation first and loop 10 times to avoid 64-bit math overflow.\r
//\r
// Microseconds is too large to multiple by 10 first. Perform the divide \r
// operation first and loop 10 times to avoid 64-bit math overflow.\r