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 <[email protected]>
---

Index: CorebootModulePkg/Library/CbParseLib/CbParseLib.c
===================================================================
--- CorebootModulePkg/Library/CbParseLib/CbParseLib.c   (revision 17108)
+++ CorebootModulePkg/Library/CbParseLib/CbParseLib.c   (working copy)
@@ -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)

Attachment: 02.patch
Description: Binary data

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to