]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/PciHostBridgeLib/XenSupport.c
OvmfPkg/PciHostBridgeLib: clear PCI aperture vars for (re)init
authorHeyi Guo <heyi.guo@linaro.org>
Wed, 28 Feb 2018 02:19:28 +0000 (10:19 +0800)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Mar 2018 08:26:05 +0000 (08:26 +0000)
commite33305ea6c6a7c9946ca4ec60aa270764a91ab8f
treee0de325d4a700e209898e993348e41c7fd8e6927
parent6a9e59a1bc40603fa8d9b25a406ea9bd5fe63915
OvmfPkg/PciHostBridgeLib: clear PCI aperture vars for (re)init

Use ZeroMem() to initialize (or re-initialize) all fields in temporary
PCI_ROOT_BRIDGE_APERTURE variables to zero. This is not mandatory but
is helpful for future extension: when we add new fields to
PCI_ROOT_BRIDGE_APERTURE and the default value of these fields can
safely be zero, this code will not suffer from an additional
change.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Signed-off-by: Yi Li <phoenix.liyi@huawei.com>
Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
OvmfPkg/Library/PciHostBridgeLib/XenSupport.c