diff options
author | Yao, Jiewen <Jiewen.yao@intel.com> | 2015-08-25 06:34:46 +0000 |
---|---|---|
committer | hwu1225 <hwu1225@Edk2> | 2015-08-25 06:34:46 +0000 |
commit | f3fa2485bbceff77a41cbc7edf6c80f91ad81807 (patch) | |
tree | d7fd371b76ef10f0671c842c1ee86dd37bcd8479 | |
parent | 25b00413898123ec2db04afe8ca25cbccd435ca8 (diff) | |
download | edk2-f3fa2485bbceff77a41cbc7edf6c80f91ad81807.tar.gz |
FspInitPei function calling parameters not matching with the function definition.
IntelFspWrapperPkg, In the file FspInitPeiV1.c and FspInitPeiV2.c, there are function calling:
GetStackInfo (BootMode, FALSE, &StackBase, &StackSize);
But the function GetStackInfo() defined as EFI_STATUS EFIAPI GetStackInfo (
IN UINT32 BootMode,
IN BOOLEAN FspInitDone,
OUT UINT64 *StackSize,
OUT EFI_PHYSICAL_ADDRESS *StackBase
)
It should be GetStackInfo (BootMode, FALSE, &StackSize, &StackBase);
(Sync patch r17850 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2014.SP1@18302 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c | 4 | ||||
-rw-r--r-- | IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c index da7f8238d7..b145b50c09 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c +++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV1.c @@ -47,7 +47,7 @@ ContinuationFunc ( //
BootMode = GetBootMode ();
- GetStackInfo (BootMode, TRUE, &StackBase, &StackSize);
+ GetStackInfo (BootMode, TRUE, &StackSize, &StackBase);
DEBUG ((DEBUG_INFO, "StackBase - 0x%x\n", StackBase));
DEBUG ((DEBUG_INFO, "StackSize - 0x%x\n", StackSize));
CallPeiCoreEntryPoint (
@@ -81,7 +81,7 @@ PeiFspInit ( PeiServicesGetBootMode (&BootMode);
DEBUG ((DEBUG_INFO, "BootMode - 0x%x\n", BootMode));
- GetStackInfo (BootMode, FALSE, &StackBase, &StackSize);
+ GetStackInfo (BootMode, FALSE, &StackSize, &StackBase);
DEBUG ((DEBUG_INFO, "StackBase - 0x%x\n", StackBase));
DEBUG ((DEBUG_INFO, "StackSize - 0x%x\n", StackSize));
diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c index 35a994e960..50b150aedd 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c +++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c @@ -148,7 +148,7 @@ PeiFspMemoryInit ( PeiServicesGetBootMode (&BootMode);
DEBUG ((DEBUG_INFO, "BootMode - 0x%x\n", BootMode));
- GetStackInfo (BootMode, FALSE, &StackBase, &StackSize);
+ GetStackInfo (BootMode, FALSE, &StackSize, &StackBase);
DEBUG ((DEBUG_INFO, "StackBase - 0x%x\n", StackBase));
DEBUG ((DEBUG_INFO, "StackSize - 0x%x\n", StackSize));
|