From 5451fff49c904ea781cfbaef2a7cae3bd697c5b3 Mon Sep 17 00:00:00 2001 From: Scott Duplichan Date: Fri, 10 Apr 2015 02:05:48 +0000 Subject: [PATCH] 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 Reviewed-by: Maurice Ma git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17142 6f19259b-4bc3-4df7-8a09-765794883524 --- CorebootModulePkg/Library/CbParseLib/CbParseLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2