From: Shenglei Zhang Date: Tue, 26 Feb 2019 00:59:16 +0000 (+0800) Subject: MdePkg/PciSegmentLibSegmentInfo: Change parameters type X-Git-Tag: edk2-stable201905~450 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2ac896a67b8eb0c42a3c39dc7e4b39eac4ba8733;p=mirror_edk2.git MdePkg/PciSegmentLibSegmentInfo: Change parameters type The current structure can lead to dependency on VC++ compiler support functions when build for "IA32" with "/Od" switch, such as _aullshr(). So change the type of parameters in structure PCI_SEGMENT_LIB_ADDRESS_STRUCTURE from UINT64 to UINT32. https://bugzilla.tianocore.org/show_bug.cgi?id=1532 Cc: Michael D Kinney Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang Reviewed-by: Liming Gao --- diff --git a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c index e0bdb16911..1cac6488cc 100644 --- a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c +++ b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c @@ -17,13 +17,13 @@ #include "PciSegmentLibCommon.h" typedef struct { - UINT64 Register : 12; - UINT64 Function : 3; - UINT64 Device : 5; - UINT64 Bus : 8; - UINT64 Reserved1 : 4; - UINT64 Segment : 16; - UINT64 Reserved2 : 16; + UINT32 Register : 12; + UINT32 Function : 3; + UINT32 Device : 5; + UINT32 Bus : 8; + UINT32 Reserved1 : 4; + UINT32 Segment : 16; + UINT32 Reserved2 : 16; } PCI_SEGMENT_LIB_ADDRESS_STRUCTURE; /**