]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left
authorShenglei Zhang <shenglei.zhang@intel.com>
Thu, 15 Aug 2019 07:32:59 +0000 (15:32 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 19 Aug 2019 00:45:29 +0000 (08:45 +0800)
Replace the operation to shift logical left with the function
LShiftU64, which has the same functionality.
The original code causes ShellPkg build failure with build
target"-b NOOPT".

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c

index 94bafa22ef4c427f2e27cad3d8d96b1bd44e4633..a569c3c55406ab58536834e56ce9701f7edeffee 100644 (file)
@@ -294,7 +294,7 @@ DumpUint64 (
 \r
   Val = *(UINT32*)(Ptr + sizeof (UINT32));\r
 \r
-  Val <<= 32;\r
+  Val = LShiftU64(Val,32);\r
   Val |= (UINT64)*(UINT32*)Ptr;\r
 \r
   Print (Format, Val);\r