]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBusDxe: Fix IA32 build failure
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 16 Feb 2017 06:01:53 +0000 (14:01 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 17 Feb 2017 08:59:50 +0000 (16:59 +0800)
commiteb470e05a3c7c251cfa50863ea119ba70e9777a3
treee86f73191c3bf65b7420df2edfa0ebaddc8783ea
parent958163561e9b6d8fa40ea4aac49d46cc889015ac
MdeModulePkg/PciBusDxe: Fix IA32 build failure

Compiler calculates the PciBar[BarIndex] using
sizeof (PciBar[0]) * BarIndex, when BarIndex is type of UINT64,
the above calculation generates assembly code using _allmul.

Change BarIndex to UINTN to avoid the build failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c