mirror of https://github.com/acidanthera/audk.git
Fix typo.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com> Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com> Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16475 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
59c30d7416
commit
8e89d9ceeb
|
@ -185,7 +185,7 @@ FSP_STATUS
|
||||||
**/
|
**/
|
||||||
typedef
|
typedef
|
||||||
FSP_STATUS
|
FSP_STATUS
|
||||||
(FSPAPI *FSP_NOTFY_PHASE) (
|
(FSPAPI *FSP_NOTIFY_PHASE) (
|
||||||
IN NOTIFY_PHASE_PARAMS *NotifyPhaseParamPtr
|
IN NOTIFY_PHASE_PARAMS *NotifyPhaseParamPtr
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ EFI_PEI_PPI_DESCRIPTOR mPeiReadyToBootPpi = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
UINT32 mFspNotfifySequence[] = {
|
UINT32 mFspNotifySequence[] = {
|
||||||
EnumInitPhaseAfterPciEnumeration,
|
EnumInitPhaseAfterPciEnumeration,
|
||||||
EnumInitPhaseReadyToBoot
|
EnumInitPhaseReadyToBoot
|
||||||
};
|
};
|
||||||
|
@ -46,23 +46,23 @@ UINT32 mFspNotfifySequence[] = {
|
||||||
/**
|
/**
|
||||||
Install FSP notification.
|
Install FSP notification.
|
||||||
|
|
||||||
@param[in] NotificatonCode FSP notification code
|
@param[in] NotificationCode FSP notification code
|
||||||
|
|
||||||
@retval EFI_SUCCESS Notify FSP successfully
|
@retval EFI_SUCCESS Notify FSP successfully
|
||||||
@retval EFI_INVALID_PARAMETER NotificatonCode is invalid
|
@retval EFI_INVALID_PARAMETER NotificationCode is invalid
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FspNotificationHandler (
|
FspNotificationHandler (
|
||||||
IN UINT32 NotificatonCode
|
IN UINT32 NotificationCode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
switch (NotificatonCode) {
|
switch (NotificationCode) {
|
||||||
case EnumInitPhaseAfterPciEnumeration:
|
case EnumInitPhaseAfterPciEnumeration:
|
||||||
//
|
//
|
||||||
// Do POST PCI initialization if needed
|
// Do POST PCI initialization if needed
|
||||||
|
@ -134,20 +134,20 @@ FspWaitForNotify (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT32 NotificatonValue;
|
UINT32 NotificationValue;
|
||||||
UINT32 NotificatonCount;
|
UINT32 NotificationCount;
|
||||||
UINT8 Count;
|
UINT8 Count;
|
||||||
|
|
||||||
NotificatonCount = 0;
|
NotificationCount = 0;
|
||||||
while (NotificatonCount < sizeof(mFspNotfifySequence) / sizeof(UINT32)) {
|
while (NotificationCount < sizeof(mFspNotifySequence) / sizeof(UINT32)) {
|
||||||
|
|
||||||
Count = (UINT8)((NotificatonCount << 1) & 0x07);
|
Count = (UINT8)((NotificationCount << 1) & 0x07);
|
||||||
SetFspMeasurePoint (FSP_PERF_ID_API_NOTIFY_POSTPCI_ENTRY + Count);
|
SetFspMeasurePoint (FSP_PERF_ID_API_NOTIFY_POSTPCI_ENTRY + Count);
|
||||||
|
|
||||||
NotificatonValue = ((NOTIFY_PHASE_PARAMS *)(UINTN)GetFspApiParameter ())->Phase;
|
NotificationValue = ((NOTIFY_PHASE_PARAMS *)(UINTN)GetFspApiParameter ())->Phase;
|
||||||
DEBUG ((DEBUG_INFO, "FSP Got Notification. Notification Value : 0x%08X\n", NotificatonValue));
|
DEBUG ((DEBUG_INFO, "FSP Got Notification. Notification Value : 0x%08X\n", NotificationValue));
|
||||||
|
|
||||||
if (mFspNotfifySequence[NotificatonCount] != NotificatonValue) {
|
if (mFspNotifySequence[NotificationCount] != NotificationValue) {
|
||||||
//
|
//
|
||||||
// Notify code does not follow the predefined order
|
// Notify code does not follow the predefined order
|
||||||
//
|
//
|
||||||
|
@ -156,12 +156,12 @@ FspWaitForNotify (
|
||||||
//
|
//
|
||||||
// Process Notification and Give control back to the boot loader framework caller
|
// Process Notification and Give control back to the boot loader framework caller
|
||||||
//
|
//
|
||||||
Status = FspNotificationHandler (NotificatonValue);
|
Status = FspNotificationHandler (NotificationValue);
|
||||||
SetFspApiReturnStatus(Status);
|
SetFspApiReturnStatus(Status);
|
||||||
if (!EFI_ERROR(Status)) {
|
if (!EFI_ERROR(Status)) {
|
||||||
NotificatonCount++;
|
NotificationCount++;
|
||||||
SetFspApiReturnStatus(EFI_SUCCESS);
|
SetFspApiReturnStatus(EFI_SUCCESS);
|
||||||
if (NotificatonValue == EnumInitPhaseReadyToBoot) {
|
if (NotificationValue == EnumInitPhaseReadyToBoot) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,10 +117,10 @@ CallFspNotifyPhase (
|
||||||
IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams
|
IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FSP_NOTFY_PHASE NotifyPhaseApi;
|
FSP_NOTIFY_PHASE NotifyPhaseApi;
|
||||||
FSP_STATUS FspStatus;
|
FSP_STATUS FspStatus;
|
||||||
|
|
||||||
NotifyPhaseApi = (FSP_NOTFY_PHASE)(UINTN)(FspHeader->ImageBase + FspHeader->NotifyPhaseEntryOffset);
|
NotifyPhaseApi = (FSP_NOTIFY_PHASE)(UINTN)(FspHeader->ImageBase + FspHeader->NotifyPhaseEntryOffset);
|
||||||
FspStatus = Execute32BitCode ((UINTN)NotifyPhaseApi, (UINTN)NotifyPhaseParams);
|
FspStatus = Execute32BitCode ((UINTN)NotifyPhaseApi, (UINTN)NotifyPhaseParams);
|
||||||
|
|
||||||
return FspStatus;
|
return FspStatus;
|
||||||
|
|
Loading…
Reference in New Issue