]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/AcpiView: Fix IA32 link error
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 1 Aug 2019 20:34:13 +0000 (13:34 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Mon, 5 Aug 2019 21:18:10 +0000 (14:18 -0700)
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 <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Tested-by: Sami Mujawar <sami.mujawar@arm.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Slit/SlitParser.c

index 1f9dac66eea5b0f4366a7a9584ac6702a74beaac..ca2808db526b1bbb79aeb21ccfc0ae6c79b2dfd8 100644 (file)
@@ -30,7 +30,7 @@ STATIC CONST ACPI_PARSER SlitParser[] = {
 /**\r
   Macro to get the value of a System Locality\r
 **/\r
-#define SLIT_ELEMENT(Ptr, i, j) *(Ptr + (i * LocalityCount) + j)\r
+#define SLIT_ELEMENT(Ptr, i, j) *(Ptr + (MultU64x64 (i, LocalityCount)) + j)\r
 \r
 /**\r
   This function parses the ACPI SLIT table.\r