automatically from a critical fault, such as power failure. \r
\r
The implementation uses an FTW Lite (Fault Tolerant Write) Work Space. \r
- This work space is a memory copy of the work space on the Woring Block,\r
+ This work space is a memory copy of the work space on the Working Block,\r
the size of the work space is the FTW_WORK_SPACE_SIZE bytes.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation \r
\r
#include <FtwLite.h>\r
\r
-//\r
-// In write function, we should check the target range to prevent the user\r
-// from writing Spare block and Working space directly.\r
-//\r
-//\r
-// Fault Tolerant Write Protocol API\r
-//\r
/**\r
Starts a target block update. This function will record data about write\r
in fault tolerant storage and will complete the write in a recoverable\r
manner, ensuring at all times that either the original contents or\r
- the modified contents are available.\r
-\r
+ the modified contents are available. We should check the target\r
+ range to prevent the user from writing Spare block and Working \r
+ space directly.\r
\r
@param This Calling context\r
@param FvbHandle The handle of FVB protocol that provides services for\r
\r
\r
/**\r
- Write a record with fault tolerant mannaer.\r
+ Write a record with fault tolerant manner.\r
Since the content has already backuped in spare block, the write is\r
guaranteed to be completed with fault tolerant manner.\r
\r
/**\r
This function is the entry point of the Fault Tolerant Write driver.\r
\r
-\r
- @param ImageHandle EFI_HANDLE: A handle for the image that is initializing\r
- this driver\r
- @param SystemTable EFI_SYSTEM_TABLE: A pointer to the EFI system table\r
+ @param ImageHandle A handle for the image that is initializing this driver\r
+ @param SystemTable A pointer to the EFI system table\r
\r
@retval EFI_SUCCESS FTW has finished the initialization\r
@retval EFI_ABORTED FTW initialization error\r
UINT32 LbaIndex;\r
\r
//\r
- // Allocate Private data of this driver,\r
- // INCLUDING THE FtwWorkSpace[FTW_WORK_SPACE_SIZE].\r
+ // Allocate Private data of this driver, including the FtwWorkSpace[FTW_WORK_SPACE_SIZE].\r
//\r
FtwLiteDevice = NULL;\r
FtwLiteDevice = AllocatePool (sizeof (EFI_FTW_LITE_DEVICE) + FTW_WORK_SPACE_SIZE);\r