summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/UefiPxeBcDxe
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-07-21 11:20:26 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-26 13:44:01 +0800
commitb4815479d6cab7fb9edf222a11e58a3721863a4c (patch)
tree4c3f3af9448b7ba60e19e76497e1a6b95f79c9c5 /NetworkPkg/UefiPxeBcDxe
parent689c9d975d273eeae6fdcebe042577ccf1e5e6f7 (diff)
downloadedk2-b4815479d6cab7fb9edf222a11e58a3721863a4c.tar.gz
edk2-b4815479d6cab7fb9edf222a11e58a3721863a4c.tar.bz2
edk2-b4815479d6cab7fb9edf222a11e58a3721863a4c.zip
NetworkPkg UefiPxeBcDxe: Fix build error for lastest VS2015 compiler
The UefiPxeBcDxe module encounters a build error for IA32 arch using the latest version of VS2015: UefiPxeBcDxe.lib(PxeBcBoot.obj) : error LNK2001: unresolved external symbol __allmul The cause is line 148 in file NetworkPkg\UefiPxeBcDxe\PxeBcBoot.c. The third parameter for gBS->SetTimer() function is of type UINT64, so the multiplication should use the MultU64x32() function now. Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'NetworkPkg/UefiPxeBcDxe')
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
index 5be82dceb6..8eff13c4ef 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
@@ -1,7 +1,7 @@
/** @file
Boot functions implementation for UefiPxeBc Driver.
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
@@ -145,7 +145,7 @@ PxeBcSelectBootPrompt (
Status = gBS->SetTimer (
TimeoutEvent,
TimerRelative,
- Timeout * TICKS_PER_SECOND
+ MultU64x32 (Timeout, TICKS_PER_SECOND)
);
if (EFI_ERROR (Status)) {
goto ON_EXIT;