From eb2a1ed56f3ccd85de9e4beceed86ff3b33092c5 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 1 Aug 2019 13:34:13 -0700 Subject: [PATCH] ShellPkg/AcpiView: Fix IA32 link error https://bugzilla.tianocore.org/show_bug.cgi?id=1970 Update SLIT_ELEMENT() macro to use MultU64x64() to perform multiplication on 64-bit operands. This is required to avoid use of an intrinsic on IA32 VS20xx builds. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Cc: Sami Mujawar Signed-off-by: Michael D Kinney Reviewed-by: Jaben Carsey Reviewed-by: Zhichao Gao Reviewed-by: Sami Mujawar Tested-by: Sami Mujawar --- .../UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c index 1f9dac66ee..ca2808db52 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c @@ -30,7 +30,7 @@ STATIC CONST ACPI_PARSER SlitParser[] = { /** Macro to get the value of a System Locality **/ -#define SLIT_ELEMENT(Ptr, i, j) *(Ptr + (i * LocalityCount) + j) +#define SLIT_ELEMENT(Ptr, i, j) *(Ptr + (MultU64x64 (i, LocalityCount)) + j) /** This function parses the ACPI SLIT table. -- 2.39.2