summaryrefslogtreecommitdiffstats
path: root/CorebootModulePkg
diff options
context:
space:
mode:
authorScott Duplichan <scott@notabs.org>2015-04-10 02:05:48 +0000
committermauricema <mauricema@Edk2>2015-04-10 02:05:48 +0000
commit5451fff49c904ea781cfbaef2a7cae3bd697c5b3 (patch)
tree01aaa0011c97620cfad1f5a87f5b92e99c411f96 /CorebootModulePkg
parente56e18704493062ef9dc3f6df25a4c02825eb611 (diff)
downloadedk2-5451fff49c904ea781cfbaef2a7cae3bd697c5b3.tar.gz
edk2-5451fff49c904ea781cfbaef2a7cae3bd697c5b3.tar.bz2
edk2-5451fff49c904ea781cfbaef2a7cae3bd697c5b3.zip
CorebootModulePkg: Fix build failure with 32-bit NOOPT target
Fix build failure with 32-bit NOOPT target by replacing direct shift of 64-bit integer with a function call. Otherwise Microsoft tool chains will generate a call to function __allshl and fail to link. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Maurice Ma <maurice.ma@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17142 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CorebootModulePkg')
-rw-r--r--CorebootModulePkg/Library/CbParseLib/CbParseLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CorebootModulePkg/Library/CbParseLib/CbParseLib.c b/CorebootModulePkg/Library/CbParseLib/CbParseLib.c
index 5535fdcdd5..4dc74abb13 100644
--- a/CorebootModulePkg/Library/CbParseLib/CbParseLib.c
+++ b/CorebootModulePkg/Library/CbParseLib/CbParseLib.c
@@ -28,7 +28,7 @@
static UINT64 cb_unpack64(struct cbuint64 val)
{
- return (((UINT64) val.hi) << 32) | val.lo;
+ return LShiftU64 (val.hi, 32) | val.lo;
}
static const char *cb_mb_vendor_string(const struct cb_mainboard *cbm)