IntelFsp2Pkg: FSP should support input UPD as NULL.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4114 FSP specification supports input UPD as NULL cases which FSP will use built-in UPD region instead. FSP should not return INVALID_PARAMETER in such cases. In FSP-T entry point case, the valid FSP-T UPD region pointer will be passed to platform FSP code to consume. In FSP-M and FSP-S cases, valid UPD pointer will be decided when updating corresponding pointer field in FspGlobalData. Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Reviewed-by: Ted Kuo <ted.kuo@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
cab1f02565
commit
b84f32ae5b
@@ -44,6 +44,8 @@ FspApiCallingCheck (
|
||||
//
|
||||
if (((UINTN)FspData != MAX_ADDRESS) && ((UINTN)FspData != MAX_UINT32)) {
|
||||
Status = EFI_UNSUPPORTED;
|
||||
} else if (ApiParam == NULL) {
|
||||
Status = EFI_SUCCESS;
|
||||
} else if (EFI_ERROR (FspUpdSignatureCheck (ApiIdx, ApiParam))) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
}
|
||||
@@ -67,9 +69,13 @@ FspApiCallingCheck (
|
||||
} else {
|
||||
if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
|
||||
Status = EFI_UNSUPPORTED;
|
||||
} else if (EFI_ERROR (FspUpdSignatureCheck (FspSiliconInitApiIndex, ApiParam))) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
} else if (ApiIdx == FspSiliconInitApiIndex) {
|
||||
if (ApiParam == NULL) {
|
||||
Status = EFI_SUCCESS;
|
||||
} else if (EFI_ERROR (FspUpdSignatureCheck (FspSiliconInitApiIndex, ApiParam))) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
//
|
||||
// Reset MultiPhase NumberOfPhases to zero
|
||||
//
|
||||
@@ -89,6 +95,8 @@ FspApiCallingCheck (
|
||||
} else {
|
||||
if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
|
||||
Status = EFI_UNSUPPORTED;
|
||||
} else if (ApiParam == NULL) {
|
||||
Status = EFI_SUCCESS;
|
||||
} else if (EFI_ERROR (FspUpdSignatureCheck (FspSmmInitApiIndex, ApiParam))) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
Reference in New Issue
Block a user