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
This commit is contained in:
Scott Duplichan 2015-04-10 02:05:48 +00:00 committed by mauricema
parent e56e187044
commit 5451fff49c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
static UINT64 cb_unpack64(struct cbuint64 val) 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) static const char *cb_mb_vendor_string(const struct cb_mainboard *cbm)