- Sets the current SKU in the PCD database to the value specified by SkuId. SkuId is returned.\r
- If SkuId not less than PCD_MAX_SKU_ID, then ASSERT().\r
+ Retrieve the pointer of EFI_PEI_PCD_PPI defined in PI 1.2 Vol 3.\r
+\r
+ This function is to locate EFI_PEI_PCD_PPI PPI via PeiService. \r
+ If fail to locate EFI_PEI_PCD_PPI, then ASSERT_EFI_ERROR().\r
+ \r
+ @retval EFI_PEI_PCD_PPI * The pointer to the EFI_PEI_PCD_PPI.\r
+\r
+**/\r
+EFI_PEI_PCD_PPI *\r
+GetPiPcdPpiPointer (\r
+ VOID\r
+ )\r
+{\r
+ EFI_STATUS Status;\r
+ EFI_PEI_PCD_PPI *PiPcdPpi;\r
+ \r
+ Status = PeiServicesLocatePpi (&gEfiPeiPcdPpiGuid, 0, NULL, (VOID **)&PiPcdPpi);\r
+ ASSERT_EFI_ERROR (Status);\r