Fix issue that calling GetS3MemoryInfo() with wrong order.
[mirror_edk2.git] / IntelFspWrapperPkg / Library / PeiFspHobProcessLibSample / FspHobProcessLibSample.c
index 82af87f..099980e 100644 (file)
@@ -246,7 +246,7 @@ FspHobProcessForMemoryResource (
 \r
     S3PeiMemBase = 0;\r
     S3PeiMemSize = 0;\r
 \r
     S3PeiMemBase = 0;\r
     S3PeiMemSize = 0;\r
-    Status = GetS3MemoryInfo (&S3PeiMemBase, &S3PeiMemSize);\r
+    Status = GetS3MemoryInfo (&S3PeiMemSize, &S3PeiMemBase);\r
     ASSERT_EFI_ERROR (Status);\r
     DEBUG((DEBUG_INFO, "S3 memory %Xh - %Xh bytes\n", S3PeiMemBase, S3PeiMemSize));\r
 \r
     ASSERT_EFI_ERROR (Status);\r
     DEBUG((DEBUG_INFO, "S3 memory %Xh - %Xh bytes\n", S3PeiMemBase, S3PeiMemSize));\r
 \r