From: gikidy Date: Wed, 31 Dec 2008 06:06:57 +0000 (+0000) Subject: Fix some typo. X-Git-Tag: edk2-stable201903~19087 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3fd8027ee5658375999a73211a79d96213e946e4 Fix some typo. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7160 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c index 30e5883d7c..1859f026c8 100644 --- a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c +++ b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c @@ -80,7 +80,7 @@ FreeMappingDatabase ( /** - Create the mappging database according to variable. + Create the mapping database according to variable. Read the environment variable(s) that contain the override mappings from Controller Device Path to a set of Driver Device Paths, and create the mapping database in memory with those variable info. diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsBoot.c b/MdeModulePkg/Library/GenericBdsLib/BdsBoot.c index 8f9d92881a..f170daab95 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -50,7 +50,7 @@ BdsLibDoLegacyBoot ( return EFI_UNSUPPORTED; } // - // Notes: if we seperate the int 19, then we don't need to refresh BBS + // Notes: if we separate the int 19, then we don't need to refresh BBS // BdsRefreshBbsTableForBoot (Option); @@ -77,7 +77,7 @@ BdsLibDoLegacyBoot ( @param Option The boot option need to be processed @param DevicePath The device path which describe where to load the - boot image or the legcy BBS device path to boot + boot image or the legacy BBS device path to boot the legacy OS @param ExitDataSize The size of exit data. @param ExitData Data returned when Boot image failed. @@ -175,6 +175,7 @@ BdsLibBootViaBootOption ( FreePool(Option->DevicePath); } Option->DevicePath = AllocateZeroPool (GetDevicePathSize (DevicePath)); + ASSERT(Option->DevicePath != NULL); CopyMem (Option->DevicePath, DevicePath, GetDevicePathSize (DevicePath)); // // Update the shell boot option @@ -286,7 +287,7 @@ Done: /** Expand a device path that starts with a hard drive media device path node to be a full device path that includes the full hardware path to the device. We need - to do this so it can be booted. As an optimizaiton the front match (the part point + to do this so it can be booted. As an optimization the front match (the part point to the partition node. E.g. ACPI() /PCI()/ATA()/Partition() ) is saved in a variable so a connect all is not required on every boot. All successful history device path which point to partition node (the front part) will be saved. @@ -338,8 +339,8 @@ BdsExpandPartitionPartialDevicePathToFull ( do { // // Check every instance of the variable - // First, check wheather the instance contain the partition node, which is needed for distinguishing multi - // partial partition boot option. Second, check wheather the instance could be connected. + // First, check whether the instance contain the partition node, which is needed for distinguishing multi + // partial partition boot option. Second, check whether the instance could be connected. // Instance = GetNextDevicePathInstance (&TempNewDevicePath, &Size); if (MatchPartitionDevicePathNode (Instance, HardDriveDevicePath)) { @@ -363,13 +364,13 @@ BdsExpandPartitionPartialDevicePathToFull ( if (DeviceExist) { // // Find the matched device path. - // Append the file path infomration from the boot option and return the fully expanded device path. + // Append the file path information from the boot option and return the fully expanded device path. // DevicePath = NextDevicePathNode ((EFI_DEVICE_PATH_PROTOCOL *) HardDriveDevicePath); FullDevicePath = AppendDevicePath (Instance, DevicePath); // - // Adjust the 'HDDP' instances sequense if the matched one is not first one. + // Adjust the 'HDDP' instances sequence if the matched one is not first one. // if (NeedAdjust) { // @@ -380,7 +381,7 @@ BdsExpandPartitionPartialDevicePathToFull ( FreePool (TempNewDevicePath); // - // Second, append the remaining parth after the matched instance + // Second, append the remaining path after the matched instance // TempNewDevicePath = CachedDevicePath; CachedDevicePath = AppendDevicePathInstance (Instance, CachedDevicePath ); @@ -405,7 +406,7 @@ BdsExpandPartitionPartialDevicePathToFull ( // // If we get here we fail to find or 'HDDP' not exist, and now we need - // to seach all devices in the system for a matched partition + // to search all devices in the system for a matched partition // BdsLibConnectAllDriversToAllControllers (); Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiBlockIoProtocolGuid, NULL, &BlockIoHandleCount, &BlockIoBuffer); @@ -434,11 +435,11 @@ BdsExpandPartitionPartialDevicePathToFull ( FullDevicePath = AppendDevicePath (BlockIoDevicePath, DevicePath); // - // Save the matched patition device path in 'HDDP' variable + // Save the matched partition device path in 'HDDP' variable // if (CachedDevicePath != NULL) { // - // Save the matched patition device path as first instance of 'HDDP' variable + // Save the matched partition device path as first instance of 'HDDP' variable // if (BdsLibMatchDevicePaths (CachedDevicePath, BlockIoDevicePath)) { TempNewDevicePath = CachedDevicePath; @@ -455,7 +456,7 @@ BdsExpandPartitionPartialDevicePathToFull ( } // // Here limit the device path instance number to 12, which is max number for a system support 3 IDE controller - // If the user try to boot many OS in different HDs or partitions, in theary, the 'HDDP' variable maybe become larger and larger. + // If the user try to boot many OS in different HDs or partitions, in theory, the 'HDDP' variable maybe become larger and larger. // InstanceNum = 0; TempNewDevicePath = CachedDevicePath; @@ -806,7 +807,7 @@ BdsDeleteAllInvalidEfiBootOption ( /** This function will enumerate all possible boot device in the system, - it will only excute once of every boot. + it will only execute once of every boot. @param BdsBootOptionList The header of the link list which indexed all current boot options @@ -1286,7 +1287,7 @@ BdsLibGetBootableHandle ( } } else { // - // Get BlockIo protocal and check removable attribute + // Get BlockIo protocol and check removable attribute // Status = gBS->HandleProtocol (Handle, &gEfiBlockIoProtocolGuid, (VOID **)&BlockIo); // @@ -1315,7 +1316,7 @@ BdsLibGetBootableHandle ( // // If fail to get bootable handle specified by a USB boot option, the BDS should try to find other bootable device in the same USB bus - // Try to locate the USB node device path first, if fail then use its previour PCI node to search + // Try to locate the USB node device path first, if fail then use its previous PCI node to search // DupDevicePath = DuplicateDevicePath (DevicePath); ASSERT (DupDevicePath != NULL); @@ -1464,23 +1465,23 @@ BdsLibNetworkBootWithMediaPresent ( @param DevicePath The bootable device Path to check - @retval BDS_EFI_MEDIA_HD_BOOT If the device path contains any media deviec path node, it is media boot type + @retval BDS_EFI_MEDIA_HD_BOOT If the device path contains any media device path node, it is media boot type For the floppy node, handle it as media node - @retval BDS_EFI_MEDIA_CDROM_BOOT If the device path contains any media deviec path node, it is media boot type + @retval BDS_EFI_MEDIA_CDROM_BOOT If the device path contains any media device path node, it is media boot type For the floppy node, handle it as media node - @retval BDS_EFI_ACPI_FLOPPY_BOOT If the device path contains any media deviec path node, it is media boot type + @retval BDS_EFI_ACPI_FLOPPY_BOOT If the device path contains any media device path node, it is media boot type For the floppy node, handle it as media node - @retval BDS_EFI_MESSAGE_ATAPI_BOOT If the device path not contains any media deviec path node, and + @retval BDS_EFI_MESSAGE_ATAPI_BOOT If the device path not contains any media device path node, and its last device path node point to a message device path node, it is - @retval BDS_EFI_MESSAGE_SCSI_BOOT If the device path not contains any media deviec path node, and + @retval BDS_EFI_MESSAGE_SCSI_BOOT If the device path not contains any media device path node, and its last device path node point to a message device path node, it is - @retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT If the device path not contains any media deviec path node, and + @retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT If the device path not contains any media device path node, and its last device path node point to a message device path node, it is - @retval BDS_EFI_MESSAGE_MISC_BOOT If the device path not contains any media deviec path node, and + @retval BDS_EFI_MESSAGE_MISC_BOOT If the device path not contains any media device path node, and its last device path node point to a message device path node, it is @retval BDS_LEGACY_BBS_BOOT Legacy boot type - @retval BDS_EFI_UNSUPPORT An EFI Removable BlockIO device path not point to a media and message devie, + @retval BDS_EFI_UNSUPPORT An EFI Removable BlockIO device path not point to a media and message device, **/ UINT32 @@ -1554,14 +1555,14 @@ BdsGetBootTypeFromDevicePath ( } /** - Check whether the Device path in a boot option point to a valide bootable device, + Check whether the Device path in a boot option point to a valid bootable device, And if CheckMedia is true, check the device is ready to boot now. @param DevPath the Device path in a boot option @param CheckMedia if true, check the device is ready to boot now. - @retval TRUE the Device path is valide - @retval FALSE the Device path is invalide . + @retval TRUE the Device path is valid + @retval FALSE the Device path is invalid . **/ BOOLEAN @@ -1707,7 +1708,7 @@ BdsLibIsValidEFIBootOptDevicePath ( /** According to a file guild, check a Fv file device path is valid. If it is invalid, try to return the valid device path. - FV address maybe changes for memory layout adjust from time to time, use this funciton + FV address maybe changes for memory layout adjust from time to time, use this function could promise the Fv file device path is right. @param DevicePath on input, the Fv file device path need to check on diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsConnect.c b/MdeModulePkg/Library/GenericBdsLib/BdsConnect.c index 4c721e07db..edbc368840 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsConnect.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsConnect.c @@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /** This function will connect all the system driver to controller first, and then special connect the default console, this make - sure all the system controller avialbe and the platform default + sure all the system controller available and the platform default console connected. **/ @@ -49,7 +49,7 @@ BdsLibConnectAll ( /** This function will connect all the system drivers to all controllers first, and then connect all the console devices the system current - have. After this we should get all the device work and console avariable + have. After this we should get all the device work and console available if the system have console device. **/ @@ -320,8 +320,8 @@ BdsLibConnectAllDriversToAllControllers ( @return EFI_INVALID_PARAMETER RemainingDevicePath is NULL pointer. RemainingDevicePath is not a USB device path. Invalid HostControllerPI type. - @return EFI_SUCCESS Sucess to connect USB device - @return EFI_NOT_FOUND Fail to find hanlde for USB controller to connect. + @return EFI_SUCCESS Success to connect USB device + @return EFI_NOT_FOUND Fail to find handle for USB controller to connect. **/ EFI_STATUS diff --git a/MdeModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c b/MdeModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c index c6cfce79bf..f202c9778a 100644 --- a/MdeModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c +++ b/MdeModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c @@ -37,7 +37,7 @@ PlatformBdsInit ( Connect the predefined platform default console device. Always try to find and enable the vga device if have. - @param PlatformConsole Predfined platform default console device array. + @param PlatformConsole Predefined platform default console device array. @retval EFI_SUCCESS Success connect at least one ConIn and ConOut device, there must have one ConOut device is @@ -54,7 +54,7 @@ PlatformBdsConnectConsole ( } /** - Connect with predeined platform connect sequence, + Connect with predefined platform connect sequence, the OEM/IBV can customize with their own connect sequence. **/ VOID @@ -82,7 +82,7 @@ PlatformBdsGetDriverOption ( /** Perform the platform diagnostic, such like test memory. OEM/IBV also - can customize this fuction to support specific platform diagnostic. + can customize this function to support specific platform diagnostic. @param MemoryTestLevel The memory test intensive level @param QuietBoot Indicate if need to enable the quiet boot @@ -98,7 +98,7 @@ PlatformBdsDiagnostics ( } /** - The function will excute with as the platform policy, current policy + The function will execute with as the platform policy, current policy is driven by boot mode. IBV/OEM can customize this code for their specific policy action. @@ -122,7 +122,7 @@ PlatformBdsPolicyBehavior ( Hook point after a boot attempt succeeds. We don't expect a boot option to return, so the UEFI 2.0 specification defines that you will default to an interactive mode and stop processing the BootOrder list in this case. This - is alos a platform implementation and can be customized by IBV/OEM. + is also a platform implementation and can be customized by IBV/OEM. @param Option Pointer to Boot Option that succeeded to boot. diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index 42177917d8..a1f966c717 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -443,6 +443,7 @@ BuildPcdDxeDataBase ( // mCallbackFnTable = AllocateZeroPool (PCD_TOTAL_TOKEN_NUMBER * sizeof (LIST_ENTRY)); + ASSERT(mCallbackFnTable != NULL); // EBC compiler is very choosy. It may report warning about comparison // between UINTN and 0 . So we add 1 in each size of the @@ -856,7 +857,7 @@ SetWorker ( Wrapper function for get PCD value for dynamic-ex PCD. @param Guid Token space guid for dynamic-ex PCD. - @param ExTokenNumber Token number for dyanmic-ex PCD. + @param ExTokenNumber Token number for dynamic-ex PCD. @param GetSize The size of dynamic-ex PCD value. @return PCD entry in PCD database. @@ -1079,7 +1080,7 @@ GetExPcdTokenNumber ( } /** - Get SKU ID tabble from PCD database. + Get SKU ID table from PCD database. @param LocalTokenNumberTableIdx Index of local token number in token number table. @param IsPeiPcd If TRUE, @@ -1290,7 +1291,7 @@ GetPtrTypeSize ( } /** - Set size of POINTER type PCD value. The size should not exceed the maxmium size + Set size of POINTER type PCD value. The size should not exceed the maximum size of this PCD value. @param LocalTokenNumberTableIdx Index of local token number in local token number table. diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.h b/MdeModulePkg/Universal/PCD/Dxe/Service.h index 7a9113b138..d0e94af57a 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.h +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.h @@ -32,7 +32,7 @@ Module Name: Service.h #include // -// Please make sure the PCD Serivce PEIM Version is consistent with +// Please make sure the PCD Service PEIM Version is consistent with // the version of PCD Database generation tool // #define PCD_SERVICE_DXE_DRIVER_VERSION 2 @@ -153,7 +153,7 @@ DxePcdGet64 ( @param[in] TokenNumber The PCD token number. - @return The pointer to the buffer to be retrived. + @return The pointer to the buffer to be retrieved. **/ VOID * @@ -293,7 +293,7 @@ DxePcdGet64Ex ( @param[in] Guid The token space for the token number. @param[in] TokenNumber The PCD token number. - @return The pointer to the buffer to be retrived. + @return The pointer to the buffer to be retrieved. **/ VOID * @@ -862,7 +862,7 @@ GetWorker ( Wrapper function for get PCD value for dynamic-ex PCD. @param Guid Token space guid for dynamic-ex PCD. - @param ExTokenNumber Token number for dyanmic-ex PCD. + @param ExTokenNumber Token number for dynamic-ex PCD. @param GetSize The size of dynamic-ex PCD value. @return PCD entry in PCD database. @@ -1047,7 +1047,7 @@ ExGetNextTokeNumber ( Get size of POINTER type PCD value. @param LocalTokenNumberTableIdx Index of local token number in local token number table. - @param MaxSize Maxmium size of POINTER type PCD value. + @param MaxSize Maximum size of POINTER type PCD value. @return size of POINTER type PCD value. @@ -1059,7 +1059,7 @@ GetPtrTypeSize ( ); /** - Set size of POINTER type PCD value. The size should not exceed the maxmium size + Set size of POINTER type PCD value. The size should not exceed the maximum size of this PCD value. @param LocalTokenNumberTableIdx Index of local token number in local token number table. diff --git a/MdeModulePkg/Universal/PCD/Pei/Pcd.c b/MdeModulePkg/Universal/PCD/Pei/Pcd.c index 0516bc8ab6..f98b26ff45 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Pcd.c +++ b/MdeModulePkg/Universal/PCD/Pei/Pcd.c @@ -205,7 +205,7 @@ PeiPcdGet64 ( @param[in] TokenNumber The PCD token number. - @return The pointer to the buffer to be retrived. + @return The pointer to the buffer to be retrieved. **/ VOID * @@ -402,7 +402,7 @@ PeiPcdGet64Ex ( @param[in] Guid The token space for the token number. @param[in] ExTokenNumber The PCD token number. - @return The pointer to the buffer to be retrived. + @return The pointer to the buffer to be retrieved. **/ VOID * @@ -1091,7 +1091,7 @@ PeiPcdGetNextTokenSpace ( The max size of this PCD's value is described in PCD's definition in DEC file. @param LocalTokenNumberTableIdx Index of PCD token number in PCD token table - @param MaxSize Maxmium size of PCD's value + @param MaxSize Maximum size of PCD's value @param Database Pcd database in PEI phase. @return PCD value's size for POINTER type PCD. @@ -1162,11 +1162,11 @@ GetPtrTypeSize ( The max size of this PCD's value is described in PCD's definition in DEC file. @param LocalTokenNumberTableIdx Index of PCD token number in PCD token table - @param CurrentSize Maxmium size of PCD's value + @param CurrentSize Maximum size of PCD's value @param Database Pcd database in PEI phase. - @retval TRUE Success to set PCD's value size, which is not exceed maxmium size - @retval FALSE Fail to set PCD's value size, which maybe exceed maxmium size + @retval TRUE Success to set PCD's value size, which is not exceed maximum size + @retval FALSE Fail to set PCD's value size, which maybe exceed maximum size **/ BOOLEAN