]> git.proxmox.com Git - mirror_edk2.git/commitdiff
correct some spelling error.
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Aug 2008 07:50:46 +0000 (07:50 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Aug 2008 07:50:46 +0000 (07:50 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5599 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.c
MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwWorkSpace.c

index fd974d5d700c17033248cce0d8da1d3823d1c85a..2b42ef2c3753725bb13335819fad20a620417886 100644 (file)
@@ -9,7 +9,7 @@
   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
@@ -25,19 +25,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \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
@@ -383,7 +377,7 @@ FtwLiteWrite (
 \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
@@ -582,10 +576,8 @@ FtwAbort (
 /**\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
@@ -613,8 +605,7 @@ InitializeFtwLite (
   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
index 6831504db85b7d8584073136d3fb54e3a5f51328..ab0ad4ca8279156f7e2626ecac385180907091dc 100644 (file)
@@ -281,7 +281,7 @@ WorkSpaceRefresh (
   Offset  = (UINTN) (UINT8 *) Record - (UINTN) FtwLiteDevice->FtwWorkSpace;\r
 \r
   //\r
-  // IF work space has error or Record is out of the workspace limit, THEN\r
+  // If work space has error or Record is out of the workspace limit, THEN\r
   //   call reclaim.\r
   //\r
   if (EFI_ERROR (Status) || (Offset + WRITE_TOTAL_SIZE >= FtwLiteDevice->FtwWorkSpaceSize)) {\r