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 <[email protected]> Cc: Ray Ni <[email protected]> Cc: Zhichao Gao <[email protected]> Signed-off-by: Shenglei Zhang <[email protected]> --- v2: There is no return target from LShiftU64 in v1 patch. So update code to "Val = LShiftU64(Val,32)". ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index 94bafa22ef4c..a569c3c55406 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -294,7 +294,7 @@ DumpUint64 ( Val = *(UINT32*)(Ptr + sizeof (UINT32)); - Val <<= 32; + Val = LShiftU64(Val,32); Val |= (UINT64)*(UINT32*)Ptr; Print (Format, Val); -- 2.18.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#45791): https://edk2.groups.io/g/devel/message/45791 Mute This Topic: https://groups.io/mt/32895687/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
