summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
diff options
context:
space:
mode:
authorAbdul Lateef Attar <AbdulLateef.Attar@amd.com>2024-01-03 15:22:39 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-01-03 14:30:45 +0000
commit16c8cfc81054aa76e133eab1033560052727cab5 (patch)
tree5bc50aeec848fec380bcaad605cb5d0faf091f86 /DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
parentea658e35a991377ea7beea7cbd7ba56dc1071f10 (diff)
downloadedk2-16c8cfc81054aa76e133eab1033560052727cab5.tar.gz
edk2-16c8cfc81054aa76e133eab1033560052727cab5.tar.bz2
edk2-16c8cfc81054aa76e133eab1033560052727cab5.zip
DynamicTablesPkg: Fix IA32 compilation errors
Add the support for X64 compilation to the CI. - Fix the signed and unsigned variable comparision. warning C4018: '>': signed/unsigned mismatch - Fix the NOOPT build error for IA32 by replacing 64bit shift operator with LShiftU64. Cc: Pierre Gondois <pierre.gondois@arm.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c')
-rw-r--r--DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
index d264975eb0..549cee1b3f 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
@@ -170,7 +170,10 @@ AddAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 (
+ (UINT64)Generator->AcpiTableSignature,
+ 32
+ );
}
// UINT32 OemRevision
@@ -257,7 +260,7 @@ AddSsdtAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 ((UINT64)Generator->AcpiTableSignature, 32);
}
if (AcpiTableInfo->OemRevision != 0) {