]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenFv/GenFvInternalLib.c
BaseTools: Various typo
[mirror_edk2.git] / BaseTools / Source / C / GenFv / GenFvInternalLib.c
index 4d0339e1f9c0e64720164df33264c62deb6eb47f..818c46407beb755c8ad59378b2cc388d69a46de6 100644 (file)
@@ -110,7 +110,7 @@ CHAR8      *mFvbAlignmentName[] = {
 // This data array will be located at the base of the Firmware Volume Header (FVH)\r
 // in the boot block.  It must not exceed 14 bytes of code.  The last 2 bytes\r
 // will be used to keep the FVH checksum consistent.\r
-// This code will be run in response to a starutp IPI for HT-enabled systems.\r
+// This code will be run in response to a startup IPI for HT-enabled systems.\r
 //\r
 #define SIZEOF_STARTUP_DATA_ARRAY 0x10\r
 \r
@@ -465,7 +465,7 @@ Returns:
   case 0:\r
     //\r
     // 1 byte alignment\r
-    //if bit 1 have set, 128K byte alignmnet\r
+    //if bit 1 have set, 128K byte alignment\r
     //\r
     if (FfsFile->Attributes & FFS_ATTRIB_DATA_ALIGNMENT2) {\r
       *Alignment = 17;\r
@@ -724,7 +724,7 @@ Returns:
     memcpy ((UINT8 *)PadFile + CurFfsHeaderSize, ExtHeader, ExtHeader->ExtHeaderSize);\r
     ((EFI_FIRMWARE_VOLUME_HEADER *) FvImage->FileImage)->ExtHeaderOffset = (UINT16) ((UINTN) ((UINT8 *)PadFile + CurFfsHeaderSize) - (UINTN) FvImage->FileImage);\r
     //\r
-    // Make next file start at QWord Boundry\r
+    // Make next file start at QWord Boundary\r
     //\r
     while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {\r
       FvImage->CurrentFilePointer++;\r
@@ -1218,7 +1218,7 @@ Returns:
   FileBuffer = malloc (FileSize);\r
   if (FileBuffer == NULL) {\r
     fclose (NewFile);\r
-    Error (NULL, 0, 4001, "Resouce", "memory cannot be allocated!");\r
+    Error (NULL, 0, 4001, "Resource", "memory cannot be allocated!");\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -1387,7 +1387,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
   //\r
-  // Make next file start at QWord Boundry\r
+  // Make next file start at QWord Boundary\r
   //\r
   while (((UINTN) FvImage->CurrentFilePointer & (EFI_FFS_FILE_HEADER_ALIGNMENT - 1)) != 0) {\r
     FvImage->CurrentFilePointer++;\r
@@ -2196,14 +2196,14 @@ Returns:
         return EFI_ABORTED;\r
       }\r
 \r
-      // Add opcode for an uncondional branch with no link. i.e.: " B SecEntryPoint"\r
+      // Add opcode for an unconditional branch with no link. i.e.: " B SecEntryPoint"\r
       ResetVector[0] |= ARMT_UNCONDITIONAL_JUMP_INSTRUCTION;\r
 \r
       // SWI handler movs   pc,lr. Just in case a debugger uses SWI\r
       ResetVector[2] = 0xE1B0F07E;\r
 \r
       // Place holder to support a common interrupt handler from ROM.\r
-      // Currently not suppprted. For this to be used the reset vector would not be in this FV\r
+      // Currently not supported. For this to be used the reset vector would not be in this FV\r
       // and the exception vectors would be hard coded in the ROM and just through this address\r
       // to find a common handler in the a module in the FV.\r
       ResetVector[3] = 0;\r
@@ -2235,7 +2235,7 @@ Returns:
     ARMT above has an entry in ResetVector[2] for SWI. The way we are using the ResetVector\r
     array at the moment, for AArch64, does not allow us space for this as the header only\r
     allows for a fixed amount of bytes at the start. If we are sure that UEFI will live\r
-    within the first 4GB of addressable RAM we could potensioally adopt the same ResetVector\r
+    within the first 4GB of addressable RAM we could potentially adopt the same ResetVector\r
     layout as above. But for the moment we replace the four 32bit vectors with two 64bit\r
     vectors in the same area of the Image heasder. This allows UEFI to start from a 64bit\r
     base.\r
@@ -2253,7 +2253,7 @@ Returns:
         Error(NULL, 0, 3000, "Invalid", "SEC Entry point must be within 128MB of the start of the FV");\r
         return EFI_ABORTED;\r
       }\r
-      // Add opcode for an uncondional branch with no link. i.e.: " B SecEntryPoint"\r
+      // Add opcode for an unconditional branch with no link. i.e.: " B SecEntryPoint"\r
       ResetVector[0] |= ARM64_UNCONDITIONAL_JUMP_INSTRUCTION;\r
     }\r
 \r
@@ -3068,7 +3068,7 @@ Returns:
   }\r
 \r
   //\r
-  // Accumlate every FFS file size.\r
+  // Accumulate every FFS file size.\r
   //\r
   for (Index = 0; FvInfoPtr->FvFiles[Index][0] != 0; Index++) {\r
     //\r
@@ -3143,7 +3143,7 @@ Returns:
     }\r
 \r
     //\r
-    // Make next ffs file start at QWord Boundry\r
+    // Make next ffs file start at QWord Boundary\r
     //\r
     if (FvInfoPtr->IsPiFvImage) {\r
       CurrentOffset = (CurrentOffset + EFI_FFS_FILE_HEADER_ALIGNMENT - 1) & ~(EFI_FFS_FILE_HEADER_ALIGNMENT - 1);\r
@@ -3234,7 +3234,7 @@ Routine Description:
   their base address to the parent image.\r
 \r
 Arguments:\r
-  FvInfo            A pointer to FV_INFO struture.\r
+  FvInfo            A pointer to FV_INFO structure.\r
   FfsFile           A pointer to Ffs file image that may contain FvImage.\r
   XipOffset         The offset address to the parent FvImage base.\r
 \r
@@ -3277,7 +3277,7 @@ Returns:
         return EFI_ABORTED;\r
       }\r
 \r
-      // machine type is ARM, set a flag so ARM reset vector procesing occurs\r
+      // machine type is ARM, set a flag so ARM reset vector processing occurs\r
       if ((MachineType == EFI_IMAGE_MACHINE_ARMT) || (MachineType == EFI_IMAGE_MACHINE_AARCH64)) {\r
         VerboseMsg("Located ARM/AArch64 SEC/PEI core in child FV");\r
         mArm = TRUE;\r
@@ -3311,7 +3311,7 @@ Routine Description:
 \r
 Arguments:\r
 \r
-  FvInfo            A pointer to FV_INFO struture.\r
+  FvInfo            A pointer to FV_INFO structure.\r
   FileName          Ffs File PathName\r
   FfsFile           A pointer to Ffs file image.\r
   XipOffset         The offset address to use for rebasing the XIP file image.\r