From: "Abdul Lateef Attar via groups.io" <AbdulLateef.Attar=amd.com@groups.io>
To: <devel@edk2.groups.io>
Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>,
Pierre Gondois <pierre.gondois@arm.com>,
Sami Mujawar <sami.mujawar@arm.com>
Subject: [edk2-devel] [PATCH v2 2/2] DynamicTablesPkg: Fix IA32 compilation errors
Date: Wed, 3 Jan 2024 15:22:39 +0530 [thread overview]
Message-ID: <e5874908f3c036bc0848923d817a10a3e65d8b89.1704265673.git.AbdulLateef.Attar@amd.com> (raw)
In-Reply-To: <cover.1704265673.git.AbdulLateef.Attar@amd.com>
From: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
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>
---
DynamicTablesPkg/DynamicTablesPkg.dsc | 2 +-
.../Common/TableHelperLib/ConfigurationManagerObjectParser.c | 2 +-
DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/DynamicTablesPkg.dsc
index a2db14efaf..2f35ac82f2 100644
--- a/DynamicTablesPkg/DynamicTablesPkg.dsc
+++ b/DynamicTablesPkg/DynamicTablesPkg.dsc
@@ -15,7 +15,7 @@
PLATFORM_VERSION = 0.1
DSC_SPECIFICATION = 0x0001001a
OUTPUT_DIRECTORY = Build/DynamicTables
- SUPPORTED_ARCHITECTURES = ARM|AARCH64|X64
+ SUPPORTED_ARCHITECTURES = ARM|AARCH64|IA32|X64
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
SKUID_IDENTIFIER = DEFAULT
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
index ce494816ed..c1a7528419 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
@@ -1130,7 +1130,7 @@ ParseCmObjDesc (
&RemainingSize,
1
);
- if ((RemainingSize > CmObjDesc->Size) ||
+ if ((RemainingSize > (INTN)CmObjDesc->Size) ||
(RemainingSize < 0))
{
ASSERT (0);
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
index e33d6e656b..12c67b9811 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
@@ -170,7 +170,7 @@ AddAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 ((UINT64)Generator->AcpiTableSignature, 32);
}
// UINT32 OemRevision
@@ -257,7 +257,7 @@ AddSsdtAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 ((UINT64)Generator->AcpiTableSignature, 32);
}
if (AcpiTableInfo->OemRevision != 0) {
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113064): https://edk2.groups.io/g/devel/message/113064
Mute This Topic: https://groups.io/mt/103499170/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-01-03 9:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-03 9:52 [edk2-devel] [PATCH v2 0/2] DynamicTablesPkg: Fix IA32 and X64 compilation errors Abdul Lateef Attar via groups.io
2024-01-03 9:52 ` [edk2-devel] [PATCH v2 1/2] DynamicTablesPkg: Fix " Abdul Lateef Attar via groups.io
2024-01-03 11:33 ` Sami Mujawar
2024-01-03 9:52 ` Abdul Lateef Attar via groups.io [this message]
2024-01-03 11:33 ` [edk2-devel] [PATCH v2 2/2] DynamicTablesPkg: Fix IA32 " Sami Mujawar
2024-01-03 14:54 ` [edk2-devel] [PATCH v2 0/2] DynamicTablesPkg: Fix IA32 and X64 " Sami Mujawar
2024-01-04 2:11 ` Abdul Lateef Attar via groups.io
[not found] ` <17A702FE941215EA.10454@groups.io>
2024-01-04 4:04 ` Abdul Lateef Attar via groups.io
2024-01-04 10:21 ` Sami Mujawar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5874908f3c036bc0848923d817a10a3e65d8b89.1704265673.git.AbdulLateef.Attar@amd.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox