//\r
\r
//\r
- // FileBuid\r
+ // FileGuid\r
//\r
Status = GetGuidFromDataFile(\r
Context,\r
#include <Uefi.h>\r
#include <PiPei.h>\r
//\r
-// The protocols, PPI and GUID defintions for this module\r
+// The protocols, PPI and GUID definitions for this module\r
//\r
#include <Ppi/MasterBootMode.h>\r
#include <Ppi/BootInRecoveryMode.h>\r
}\r
\r
/**\r
- This function assumes the input Capusule image already passes basic check in\r
+ This function assumes the input Capsule image already passes basic check in\r
ValidateFmpCapsule().\r
\r
Criteria of system FMP capsule is:\r
@param[out] IsSystemFmp If it is a system FMP.\r
@param[out] EmbeddedDriverCount The EmbeddedDriverCount in the FMP capsule.\r
\r
- @retval EFI_SUCESS Input capsule is a correct FMP capsule.\r
+ @retval EFI_SUCCESS Input capsule is a correct FMP capsule.\r
@retval EFI_INVALID_PARAMETER Input capsule is not a correct FMP capsule.\r
**/\r
EFI_STATUS\r
@param[in] FvImage Points to the DXE FV image.\r
@param[in] FvImageSize The length of the DXE FV image in bytes.\r
\r
- @retval EFI_SUCESS Create hob and install FvInfo PPI successfully.\r
+ @retval EFI_SUCCESS Create hob and install FvInfo PPI successfully.\r
@retval EFI_VOLUME_CORRUPTED The input data is not an FV.\r
@retval EFI_OUT_OF_RESOURCES No enough resource to process the input data.\r
**/\r
@param[in] ConfigImage Points to the config file image.\r
@param[in] ConfigImageSize The length of the config file image in bytes.\r
\r
- @retval EFI_SUCESS Process Recovery Image successfully.\r
+ @retval EFI_SUCCESS Process Recovery Image successfully.\r
**/\r
EFI_STATUS\r
RecoverImage (\r
@param[in] Image Points to the recovery image.\r
@param[in] Length The length of the recovery image in bytes.\r
\r
- @retval EFI_SUCESS Process Recovery Image successfully.\r
+ @retval EFI_SUCCESS Process Recovery Image successfully.\r
@retval EFI_SECURITY_VIOLATION Recovery image is not processed due to security violation.\r
**/\r
EFI_STATUS\r
@param[in] CapsuleHeader Points to a capsule header.\r
@param[in] IsSystemFmp If this capsule is a system FMP capsule.\r
\r
- @retval EFI_SUCESS Process Capsule Image successfully.\r
+ @retval EFI_SUCCESS Process Capsule Image successfully.\r
@retval EFI_UNSUPPORTED Capsule image is not supported by the firmware.\r
@retval EFI_VOLUME_CORRUPTED FV volume in the capsule is corrupted.\r
@retval EFI_OUT_OF_RESOURCES Not enough memory.\r
(*UpdateArray)[Index].BaseAddress = (EFI_PHYSICAL_ADDRESS) Num64;\r
\r
//\r
- // FileBuid\r
+ // FileGuid\r
//\r
Status = GetGuidFromDataFile(\r
Context,\r
&VarSize,\r
&SystemFmpPrivate->LastAttempt\r
);\r
- DEBUG((DEBUG_INFO, "GetLastAttemp - %r\n", VarStatus));\r
- DEBUG((DEBUG_INFO, "GetLastAttemp Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
+ DEBUG((DEBUG_INFO, "GetLastAttempt - %r\n", VarStatus));\r
+ DEBUG((DEBUG_INFO, "GetLastAttempt Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
\r
return EFI_SUCCESS;\r
}\r
\r
#define ABORT_REASON_MAX_SIZE 0x40 // UnicodeStringSize including final L'\0'\r
\r
-#define CAPSULE_IMAGE_ADDITIONAL_MAX_SIZE (0x20020 + 0xA0000) // Addtional size for Capsule Header, FV block alignment + DispatchImage.\r
+#define CAPSULE_IMAGE_ADDITIONAL_MAX_SIZE (0x20020 + 0xA0000) // Additional size for Capsule Header, FV block alignment + DispatchImage.\r
\r
typedef struct {\r
UINT8 ImageIndex;\r
@param[out] LastAttemptVersion The last attempt version, which will be recorded in ESRT and FMP EFI_FIRMWARE_IMAGE_DESCRIPTOR.\r
@param[out] LastAttemptStatus The last attempt status, which will be recorded in ESRT and FMP EFI_FIRMWARE_IMAGE_DESCRIPTOR.\r
\r
- @retval EFI_SUCESS Process Capsule Image successfully.\r
+ @retval EFI_SUCCESS Process Capsule Image successfully.\r
@retval EFI_UNSUPPORTED Capsule image is not supported by the firmware.\r
@retval EFI_VOLUME_CORRUPTED FV volume in the capsule is corrupted.\r
@retval EFI_OUT_OF_RESOURCES Not enough memory.\r
// Process FV\r
//\r
Status = DispatchSystemFmpImages((VOID *)Image, ImageSize, &SystemFmpPrivate->LastAttempt.LastAttemptVersion, &SystemFmpPrivate->LastAttempt.LastAttemptStatus);\r
- DEBUG((DEBUG_INFO, "(Agent)SetImage - LastAttemp Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
+ DEBUG((DEBUG_INFO, "(Agent)SetImage - LastAttempt Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
if (EFI_ERROR(Status)) {\r
VarStatus = gRT->SetVariable(\r
SYSTEM_FMP_LAST_ATTEMPT_VARIABLE_NAME,\r
sizeof(SystemFmpPrivate->LastAttempt),\r
&SystemFmpPrivate->LastAttempt\r
);\r
- DEBUG((DEBUG_INFO, "(Agent)SetLastAttemp - %r\n", VarStatus));\r
+ DEBUG((DEBUG_INFO, "(Agent)SetLastAttempt - %r\n", VarStatus));\r
return Status;\r
}\r
\r
sizeof(SystemFmpPrivate->LastAttempt),\r
&SystemFmpPrivate->LastAttempt\r
);\r
- DEBUG((DEBUG_INFO, "(Agent)SetLastAttemp - %r\n", VarStatus));\r
+ DEBUG((DEBUG_INFO, "(Agent)SetLastAttempt - %r\n", VarStatus));\r
return Status;\r
}\r
}\r
// the current variable driver may not manage the new NVRAM region.\r
//\r
if (mNvRamUpdated) {\r
- DEBUG ((DEBUG_INFO, "NvRamUpdated, Update Variable Serivces\n"));\r
+ DEBUG ((DEBUG_INFO, "NvRamUpdated, Update Variable Services\n"));\r
gRT->GetVariable = GetVariableHook;\r
gRT->GetNextVariableName = GetNextVariableNameHook;\r
gRT->SetVariable = SetVariableHook;\r
sizeof(SystemFmpPrivate->LastAttempt),\r
&SystemFmpPrivate->LastAttempt\r
);\r
- DEBUG((DEBUG_INFO, "SetLastAttemp - %r\n", VarStatus));\r
+ DEBUG((DEBUG_INFO, "SetLastAttempt - %r\n", VarStatus));\r
\r
return Status;\r
}\r