X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FPcatSingleSegmentPciCfg2Pei%2FPciCfg2.c;h=ed53e126992fd35039cc5caf6a65c497a7e305e7;hb=185395a4a21dcb11bd59db256077a3b29d92ff55;hp=d2ca19c7b065156f2ad3c5c909d8ba37908188f3;hpb=109e9a6156b2c9540fd4b1b6ce17ac5be1fa03c4;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c index d2ca19c7b0..ed53e12699 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c @@ -3,8 +3,8 @@ to provide read, write and modify access to Pci configuration space in PEI phase. To follow PI specification, these services also support access to the unaligned Pci address. - Copyright (c) 2006 - 2008, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -20,6 +20,7 @@ #include #include #include +#include #include /** @@ -308,10 +309,9 @@ PeimInitializePciCfg ( { EFI_STATUS Status; - ASSERT ((**PeiServices).Hdr.Revision >= PI_SPECIFICATION_VERSION); - (**(EFI_PEI_SERVICES **)PeiServices).PciCfg = &gPciCfg2Ppi; - Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfg2PpiList); + Status = PeiServicesInstallPpi (&gPciCfg2PpiList); + ASSERT_EFI_ERROR (Status); return Status; }