summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-02-26 08:59:16 +0800
committerLiming Gao <liming.gao@intel.com>2019-03-19 15:22:07 +0800
commit2ac896a67b8eb0c42a3c39dc7e4b39eac4ba8733 (patch)
treef1ae0d9f6ceb43ac0fce9e97a8c90e9e7152f6ca /MdePkg
parent43b1be74a8f6654219f636a1f6684b1cbbb05768 (diff)
downloadedk2-2ac896a67b8eb0c42a3c39dc7e4b39eac4ba8733.tar.gz
edk2-2ac896a67b8eb0c42a3c39dc7e4b39eac4ba8733.tar.bz2
edk2-2ac896a67b8eb0c42a3c39dc7e4b39eac4ba8733.zip
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 <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c14
1 files changed, 7 insertions, 7 deletions
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;
/**