public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2] IntelSiliconPkg/VTd: Fix to support IntelVTdDmarPei in 64bit
@ 2022-02-15  6:46 Kuo, Ted
  2022-02-15  6:51 ` Sheng Wei
  2022-02-15  6:57 ` Sheng Wei
  0 siblings, 2 replies; 4+ messages in thread
From: Kuo, Ted @ 2022-02-15  6:46 UTC (permalink / raw)
  To: devel
  Cc: Sheng Wei, Ray Ni, Rangasai V Chaganty, Jenny Huang,
	Robert Kowalewski

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3836
Changed VtdIndex defined in PROCESS_DRHD_CALLBACK_FUNC from UINT32 to UINTN
to avoid type incompatible error when enable PEI in 64bit.

Cc: Sheng Wei <w.sheng@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Jenny Huang <jenny.huang@intel.com>
Cc: Robert Kowalewski <robert.kowalewski@intel.com>
Signed-off-by: Ted Kuo <ted.kuo@intel.com>
---
 .../IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c     | 4 ++--
 .../IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c
index f97d627eca..2844f366bb 100644
--- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c
+++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c
@@ -434,7 +434,7 @@ GetVTdInfoHob (
 VOID
 ProcessDhrdPreMemory (
   IN OUT VOID                       *Context,
-  IN     UINT32                     VTdIndex,
+  IN     UINTN                      VTdIndex,
   IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
   )
 {
@@ -454,7 +454,7 @@ ProcessDhrdPreMemory (
 VOID
 ProcessDrhdPostMemory (
   IN OUT VOID                       *Context,
-  IN     UINT32                     VTdIndex,
+  IN     UINTN                      VTdIndex,
   IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
   )
 {
diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h
index 351a7810d8..7bed0a5363 100644
--- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h
+++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h
@@ -49,7 +49,7 @@ typedef
 VOID
 (*PROCESS_DRHD_CALLBACK_FUNC) (
   IN OUT VOID                       *Context,
-  IN     UINT32                     VTdIndex,
+  IN     UINTN                      VTdIndex,
   IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
   );
 
-- 
2.16.2.windows.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-15  7:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-15  6:46 [PATCH v2] IntelSiliconPkg/VTd: Fix to support IntelVTdDmarPei in 64bit Kuo, Ted
2022-02-15  6:51 ` Sheng Wei
2022-02-15  6:57 ` Sheng Wei
2022-02-15  7:06   ` Kowalewski, Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox