]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/PciSegmentLibSegmentInfo: Change parameters type
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 26 Feb 2019 00:59:16 +0000 (08:59 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 19 Mar 2019 07:22:07 +0000 (15:22 +0800)
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>
MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c

index e0bdb169117f65c16e93b66b78c95492a3719816..1cac6488cc7409ab4da433d4104d962f7bde5dc0 100644 (file)
 #include "PciSegmentLibCommon.h"\r
 \r
 typedef struct {\r
-  UINT64  Register : 12;\r
-  UINT64  Function : 3;\r
-  UINT64  Device : 5;\r
-  UINT64  Bus : 8;\r
-  UINT64  Reserved1 : 4;\r
-  UINT64  Segment : 16;\r
-  UINT64  Reserved2 : 16;\r
+  UINT32  Register : 12;\r
+  UINT32  Function : 3;\r
+  UINT32  Device : 5;\r
+  UINT32  Bus : 8;\r
+  UINT32  Reserved1 : 4;\r
+  UINT32  Segment : 16;\r
+  UINT32  Reserved2 : 16;\r
 } PCI_SEGMENT_LIB_ADDRESS_STRUCTURE;\r
 \r
 /**\r