gEfiPlatformInfoGuid is only used in BuildGuidDataHob() and GetFirstGuidHob().
-----Original Message----- From: Andrew Fish [mailto:[email protected]] Sent: Thursday, August 27, 2015 3:34 PM To: Hamel, Lee M Cc: [email protected] Subject: Re: [edk2] install a PPI with a NULL Ppi value? > On Aug 27, 2015, at 3:30 PM, Tim Lewis <[email protected]> wrote: > > That looks like it is setting up for a dependency expression. Check your > .infs to see if anyone uses it in their [depex] section. > Or a PeiServicesNotifyPpi() callback. Thanks, Andrew Fish > Tim > > -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of Hamel, > Lee M > Sent: Friday, August 28, 2015 6:24 AM > To: [email protected] > Subject: [edk2] install a PPI with a NULL Ppi value? > > Is there a reason why platform code would install a PPI with a NULL Ppi value > for the EFI_PEI_PPI_DESCRIPTOR structure? > > static EFI_PEI_PPI_DESCRIPTOR mPlatformInfoPpi = { > EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST, > &gEfiPlatformInfoGuid, > NULL > }; > > The only thing that gEfiPlatformInfoGuid is used for is to find a HOB via > GetFirstGuidHob(). A HOB is created with > BuildGuidDataHob(&gEfiPlatformInfoGuid, ...). > I don't see why a PPI using the GUID would be necessary just for the HOB for > the GUID to exist. > > _______________________________________________ > edk2-devel mailing list > [email protected] > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.01.org_mailman_listinfo_edk2-2Ddevel&d=BQICAg&c=eEvniauFctOgLOKGJOplqw&r=1HnUuXD1wDvw67rut5_idw&m=gsT9FnrHDEWlTTwMxObbDdDIPRdzCINUOCKw8JfnrqA&s=3WHMMinY9ziva_dvgYCLuRSm6n--kOhONAL3Vzvv2ZA&e= > > _______________________________________________ > edk2-devel mailing list > [email protected] > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.01.org_mailman_listinfo_edk2-2Ddevel&d=BQICAg&c=eEvniauFctOgLOKGJOplqw&r=1HnUuXD1wDvw67rut5_idw&m=gsT9FnrHDEWlTTwMxObbDdDIPRdzCINUOCKw8JfnrqA&s=3WHMMinY9ziva_dvgYCLuRSm6n--kOhONAL3Vzvv2ZA&e= > _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

