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