1. Sync the latest network stack. Add NetLibCreateIPv4DPathNode () in netlib library.
[mirror_edk2.git] / MdeModulePkg / Universal / PCD / Pei / Service.c
index cb980da..16a5cc8 100644 (file)
@@ -14,10 +14,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 Module Name: Service.c\r
 \r
 **/\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
 \r
 #include "Service.h"\r
 \r
@@ -171,28 +167,28 @@ GetHiiVariable (
   UINTN      Size;\r
   EFI_STATUS Status;\r
   VOID       *Buffer;\r
-  EFI_PEI_READ_ONLY_VARIABLE_PPI *VariablePpi;\r
+  EFI_PEI_READ_ONLY_VARIABLE2_PPI *VariablePpi;\r
 \r
-  Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariablePpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
+  Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   Size = 0;\r
-  Status = VariablePpi->PeiGetVariable (\r
-                          GetPeiServicesTablePointer (),\r
+  Status = VariablePpi->GetVariable (\r
+                          VariablePpi,\r
                           VariableName,\r
                           (EFI_GUID *) VariableGuid,\r
                           NULL,\r
                           &Size,\r
                           NULL\r
-                            );\r
+                          );\r
   if (Status == EFI_BUFFER_TOO_SMALL) {\r
 \r
 \r
     Status = PeiServicesAllocatePool (Size, &Buffer);\r
     ASSERT_EFI_ERROR (Status);\r
 \r
-    Status = VariablePpi->PeiGetVariable (\r
-                              GetPeiServicesTablePointer (),\r
+    Status = VariablePpi->GetVariable (\r
+                              VariablePpi,\r
                               (UINT16 *) VariableName,\r
                               (EFI_GUID *) VariableGuid,\r
                               NULL,\r