From: Heyi Guo Date: Wed, 28 Feb 2018 02:19:28 +0000 (+0800) Subject: CorebootPayloadPkg/PciHostBridgeLib: clear aperture vars for (re)init X-Git-Tag: edk2-stable201903~2132 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=6a9e59a1bc40603fa8d9b25a406ea9bd5fe63915;hp=6a9e59a1bc40603fa8d9b25a406ea9bd5fe63915 CorebootPayloadPkg/PciHostBridgeLib: clear 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 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 Signed-off-by: Yi Li Reviewed-by: Ni Ruiyu Reviewed-by: Benjamin You Reviewed-by: Ard Biesheuvel ---