]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c
Refine PCI Segment Library to avoid possible intrinsic function.
[mirror_edk2.git] / MdePkg / Library / PeiPciSegmentLibPciCfg2 / PciSegmentLib.c
index 7d59b0a380f03fcb66da9b8d358a11f5efb842bb..6c327e2eb9164ff295888c9d7363cd0161e438f9 100644 (file)
@@ -42,7 +42,7 @@
 \r
 **/\r
 #define PCI_TO_PCICFG2_ADDRESS(A) \\r
-  ((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))\r
+  ((((UINT32)(A) << 4) & 0xff000000) | (((UINT32)(A) >> 4) & 0x00000700) | (((UINT32)(A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))\r
 \r
 /**\r
   Gets PCI CFG2 PPI.\r