diff --git a/UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h b/UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h index 347c6ed823..7b860cb16f 100644 --- a/UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h +++ b/UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h @@ -179,7 +179,7 @@ CpuGetTimerValue ( ); /** - Set memory cacheability attributes for given range of memeory. + Set memory cacheability attributes for given range of memory. @param This Protocol instance structure @param BaseAddress Specifies the start address of the diff --git a/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c b/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c index 14780e4c45..4854633f8e 100644 --- a/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c +++ b/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c @@ -87,8 +87,8 @@ RiscVIsSstcEnabled ( /** Timer Interrupt Handler. - @param InterruptType The type of interrupt that occured - @param SystemContext A pointer to the system context when the interrupt occured + @param InterruptType The type of interrupt that occurred + @param SystemContext A pointer to the system context when the interrupt occurred **/ VOID EFIAPI @@ -304,7 +304,7 @@ TimerDriverGenerateSoftInterrupt ( @retval EFI_SUCCESS Timer Architectural Protocol created @retval EFI_OUT_OF_RESOURCES Not enough resources available to initialize driver. - @retval EFI_DEVICE_ERROR A device error occured attempting to initialize the driver. + @retval EFI_DEVICE_ERROR A device error occurred attempting to initialize the driver. **/ EFI_STATUS diff --git a/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h b/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h index 067bbd29f3..2b9131f5ed 100644 --- a/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h +++ b/UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h @@ -45,7 +45,7 @@ RiscvSetTimerPeriod ( @retval EFI_SUCCESS Timer Architectural Protocol created @retval EFI_OUT_OF_RESOURCES Not enough resources available to initialize driver. - @retval EFI_DEVICE_ERROR A device error occured attempting to initialize the driver. + @retval EFI_DEVICE_ERROR A device error occurred attempting to initialize the driver. **/ EFI_STATUS diff --git a/UefiCpuPkg/Include/Library/LocalApicLib.h b/UefiCpuPkg/Include/Library/LocalApicLib.h index d7c2ad3f70..1ff1aa0f9b 100644 --- a/UefiCpuPkg/Include/Library/LocalApicLib.h +++ b/UefiCpuPkg/Include/Library/LocalApicLib.h @@ -305,7 +305,7 @@ GetApicTimerCurrentCount ( @param DivideValue The divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. If it is 0, then use the current divide value in the DCR. @param InitCount The initial count value. - @param PeriodicMode If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector The timer interrupt vector number. **/ VOID @@ -321,7 +321,7 @@ InitializeApicTimer ( Get the state of the local APIC timer. @param DivideValue Return the divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. - @param PeriodicMode Return the timer mode. If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode Return the timer mode. If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector Return the timer interrupt vector number. **/ VOID diff --git a/UefiCpuPkg/Include/Library/MmSaveStateLib.h b/UefiCpuPkg/Include/Library/MmSaveStateLib.h index db4552e4a8..f4490d9011 100644 --- a/UefiCpuPkg/Include/Library/MmSaveStateLib.h +++ b/UefiCpuPkg/Include/Library/MmSaveStateLib.h @@ -32,7 +32,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent from the save state. @retval EFI_SUCCESS The register was read from Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support reading Register. @retval EFI_NOT_FOUND If desired Register not found. **/ @@ -58,7 +58,7 @@ MmSaveStateReadRegister ( @param[in] Buffer Upon entry, this holds the new CPU register value. @retval EFI_SUCCESS The register was written to Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support writing Register. @retval EFI_NOT_FOUND If desired Register not found. **/ diff --git a/UefiCpuPkg/Include/Library/MpInitLib.h b/UefiCpuPkg/Include/Library/MpInitLib.h index 842c6f7ff9..bc510f701d 100644 --- a/UefiCpuPkg/Include/Library/MpInitLib.h +++ b/UefiCpuPkg/Include/Library/MpInitLib.h @@ -64,7 +64,7 @@ MpInitLibGetNumberOfProcessors ( @param[in] ProcessorNumber The handle number of processor. Lower 24 bits contains the actual processor number. - BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrived. + BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrieved. @param[out] ProcessorInfoBuffer A pointer to the buffer where information for the requested processor is deposited. @param[out] HealthData Return processor health data. diff --git a/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h b/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h index 36459afc5e..40686fe1f3 100644 --- a/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h +++ b/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h @@ -511,7 +511,7 @@ PreSmmCpuRegisterTableWrite ( @param[in] RegisterType Type of the register to program. @param[in] Index Index of the register to program. @param[in] Type The data type name of a register structure. - @param[in] Field The bit fiel name in register structure to write. + @param[in] Field The bit field name in register structure to write. @param[in] Value Value to write to the bit field. @note This service could be called by BSP only. @@ -536,7 +536,7 @@ PreSmmCpuRegisterTableWrite ( @param[in] RegisterType Type of the register to program. @param[in] Index Index of the register to program. @param[in] Type The data type name of a register structure. - @param[in] Field The bit fiel name in register structure to write. + @param[in] Field The bit field name in register structure to write. @param[in] Value Value to write to the bit field. @note This service could be called by BSP only. @@ -595,7 +595,7 @@ PreSmmCpuRegisterTableWrite ( @param[in] RegisterType Type of the register to program. @param[in] Index Index of the register to program. @param[in] Type The data type name of a register structure. - @param[in] Field The bit fiel name in register structure to write. + @param[in] Field The bit field name in register structure to write. @param[in] Value Value to write to the bit field. @note This service could be called by BSP only. diff --git a/UefiCpuPkg/Include/Protocol/SmMonitorInit.h b/UefiCpuPkg/Include/Protocol/SmMonitorInit.h index 0f77897e03..d75ff8e986 100644 --- a/UefiCpuPkg/Include/Protocol/SmMonitorInit.h +++ b/UefiCpuPkg/Include/Protocol/SmMonitorInit.h @@ -48,7 +48,7 @@ EFI_STATUS If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are added - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure @retval EFI_OUT_OF_RESOURCES If nested procedure returned it and we cannot allocate more areas. **/ @@ -69,7 +69,7 @@ EFI_STATUS If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are deleted - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure **/ typedef diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c index 9767e3b48e..724f96df22 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c @@ -724,7 +724,7 @@ GetApicTimerCurrentCount ( @param DivideValue The divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. If it is 0, then use the current divide value in the DCR. @param InitCount The initial count value. - @param PeriodicMode If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector The timer interrupt vector number. **/ VOID @@ -782,7 +782,7 @@ InitializeApicTimer ( This function will ASSERT if the local APIC is not software enabled. @param DivideValue Return the divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. - @param PeriodicMode Return the timer mode. If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode Return the timer mode. If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector Return the timer interrupt vector number. **/ VOID diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c index 7fa997c882..6ef096ad6d 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c @@ -963,7 +963,7 @@ GetApicTimerCurrentCount ( @param DivideValue The divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. If it is 0, then use the current divide value in the DCR. @param InitCount The initial count value. - @param PeriodicMode If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector The timer interrupt vector number. **/ VOID @@ -1021,7 +1021,7 @@ InitializeApicTimer ( This function will ASSERT if the local APIC is not software enabled. @param DivideValue Return the divide value for the DCR. It is one of 1,2,4,8,16,32,64,128. - @param PeriodicMode Return the timer mode. If TRUE, timer mode is peridoic. Othewise, timer mode is one-shot. + @param PeriodicMode Return the timer mode. If TRUE, timer mode is periodic. Othewise, timer mode is one-shot. @param Vector Return the timer interrupt vector number. **/ VOID diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h b/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h index 292ee50a71..b6ef86bec7 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h @@ -24,7 +24,7 @@ 2. Register values in mActualContextAfterException are the same with register values mActualContextAfterException. d.Test if stack overflow can be captured by CpuStackGuard in both Bsp and AP. - In this test case, stack overflow is triggered by a funtion which calls itself continuously. This test case triggers stack + In this test case, stack overflow is triggered by a function which calls itself continuously. This test case triggers stack overflow in both BSP and AP. All AP use same Idt with Bsp. The expectation is: 1. PF exception is triggered (leading to a DF if sepereated stack is not prepared for PF) when Rsp <= StackBase + SIZE_4KB since [StackBase, StackBase + SIZE_4KB] is marked as not present in page table when PcdCpuStackGuard is TRUE. diff --git a/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c b/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c index bdc411338f..6f959033ff 100644 --- a/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c +++ b/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c @@ -371,7 +371,7 @@ PageTableLibMapInLevel ( RegionMask = RegionLength - 1; // - // ParentPagingEntry ONLY is deferenced for checking Present and MustBeOne bits + // ParentPagingEntry ONLY is dereferenced for checking Present and MustBeOne bits // when Modify is FALSE. // if ((ParentPagingEntry->Pce.Present == 0) || IsPle (ParentPagingEntry, Level + 1)) { @@ -396,7 +396,7 @@ PageTableLibMapInLevel ( // // Check if the attribute, the physical address calculated by ParentPagingEntry is equal to - // the attribute, the physical address calculated by input Attribue and Mask. + // the attribute, the physical address calculated by input Attribute and Mask. // if ((IA32_MAP_ATTRIBUTE_ATTRIBUTES (&PleBAttribute) & IA32_MAP_ATTRIBUTE_ATTRIBUTES (Mask)) == (IA32_MAP_ATTRIBUTE_ATTRIBUTES (Attribute) & IA32_MAP_ATTRIBUTE_ATTRIBUTES (Mask))) diff --git a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTest.h b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTest.h index 801d718e44..c559f2d81c 100644 --- a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTest.h +++ b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTest.h @@ -103,7 +103,7 @@ IsPageTableValid ( ); /** - Get max physical adrress supported by specific page mode + Get max physical address supported by specific page mode @param[in] Mode The paging mode. diff --git a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c index 056aabc238..00f89b6241 100644 --- a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c +++ b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c @@ -352,7 +352,7 @@ TestCaseManualChangeReadWrite ( // // The latest PageTableMap call should change nothing. - // The memory should be identical before and after the funtion is called. + // The memory should be identical before and after the function is called. // UT_ASSERT_MEM_EQUAL (Buffer, BackupBuffer, BackupPageTableBufferSize); diff --git a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c index d2c50a6c8a..fd66ae0c06 100644 --- a/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c +++ b/UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c @@ -296,7 +296,7 @@ GetEntryFromPageTable ( } /** - Get max physical adrress supported by specific page mode + Get max physical address supported by specific page mode @param[in] Mode The paging mode. diff --git a/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c b/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c index 958feac05c..4e0ba246ab 100644 --- a/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c +++ b/UefiCpuPkg/Library/MmSaveStateLib/AmdMmSaveState.c @@ -103,7 +103,7 @@ CONST CPU_MM_SAVE_STATE_REGISTER_RANGE mCpuRegisterRanges[] = { from the save state. @retval EFI_SUCCESS The register was read from Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support reading Register. @retval EFI_NOT_FOUND If desired Register not found. **/ @@ -206,7 +206,7 @@ MmSaveStateReadRegister ( @param[in] Buffer Upon entry, this holds the new CPU register value. @retval EFI_SUCCESS The register was written to Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support writing Register. @retval EFI_NOT_FOUND If desired Register not found. **/ @@ -342,7 +342,7 @@ MmSaveStateGetRegisterIndex ( @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. - @retval EFI_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. **/ EFI_STATUS diff --git a/UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveState.c b/UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveState.c index c2ccd65b1d..f02d75bdb6 100644 --- a/UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveState.c +++ b/UefiCpuPkg/Library/MmSaveStateLib/IntelMmSaveState.c @@ -139,7 +139,7 @@ STATIC CONST EFI_MM_SAVE_STATE_IO_TYPE mSmmCpuIoType[] = { from the save state. @retval EFI_SUCCESS The register was read from Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support reading Register. @retval EFI_NOT_FOUND If desired Register not found. **/ @@ -258,7 +258,7 @@ MmSaveStateReadRegister ( @param[in] Buffer Upon entry, this holds the new CPU register value. @retval EFI_SUCCESS The register was written to Save State. - @retval EFI_INVALID_PARAMTER Buffer is NULL. + @retval EFI_INVALID_PARAMETER Buffer is NULL. @retval EFI_UNSUPPORTED This function does not support writing Register. @retval EFI_NOT_FOUND If desired Register not found. **/ diff --git a/UefiCpuPkg/Library/MmSaveStateLib/MmSaveState.h b/UefiCpuPkg/Library/MmSaveStateLib/MmSaveState.h index 6c7e8abd5f..ffcb6d67fb 100644 --- a/UefiCpuPkg/Library/MmSaveStateLib/MmSaveState.h +++ b/UefiCpuPkg/Library/MmSaveStateLib/MmSaveState.h @@ -80,7 +80,7 @@ MmSaveStateGetRegisterIndex ( @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. - @retval EFI_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. **/ EFI_STATUS diff --git a/UefiCpuPkg/Library/MmSaveStateLib/MmSaveStateCommon.c b/UefiCpuPkg/Library/MmSaveStateLib/MmSaveStateCommon.c index f66245b82c..4beb6e5fae 100644 --- a/UefiCpuPkg/Library/MmSaveStateLib/MmSaveStateCommon.c +++ b/UefiCpuPkg/Library/MmSaveStateLib/MmSaveStateCommon.c @@ -66,7 +66,7 @@ MmSaveStateGetRegisterIndex ( @retval EFI_SUCCESS The register was read from Save State. @retval EFI_NOT_FOUND The register is not defined for the Save State of Processor. - @retval EFI_INVALID_PARAMTER This or Buffer is NULL. + @retval EFI_INVALID_PARAMETER This or Buffer is NULL. **/ EFI_STATUS diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c index f5f6074010..fe7e373d35 100644 --- a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c @@ -109,7 +109,7 @@ GetWakeupBuffer ( // LegacyBios driver only reports warning when page allocation in range // [0x60000, 0x88000) fails. // This library is consumed by CpuDxe driver to produce CPU Arch protocol. - // LagacyBios driver depends on CPU Arch protocol which guarantees below + // LegacyBios driver depends on CPU Arch protocol which guarantees below // allocation runs earlier than LegacyBios driver. // if (ConfidentialComputingGuestHas (CCAttrAmdSevEs)) { @@ -983,7 +983,7 @@ MpInitLibEnableDisableAP ( } /** - This funtion will try to invoke platform specific microcode shadow logic to + This function will try to invoke platform specific microcode shadow logic to relocate microcode update patches into memory. @param[in, out] CpuMpData The pointer to CPU MP Data structure. diff --git a/UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c b/UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c index bec9b247c0..1bfc7cff72 100644 --- a/UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c +++ b/UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c @@ -1,5 +1,5 @@ /** @file - Function to create page talbe. + Function to create page table. Only create page table for x64, and leave the CreatePageTable empty for Ia32. Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent diff --git a/UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm b/UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm index c0fe631635..1623280d27 100644 --- a/UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm +++ b/UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm @@ -227,7 +227,7 @@ RendezvousFunnelProcEnd: AsmRelocateApLoopGenericStart: mov eax, cr0 btr eax, 31 ; Clear CR0.PG - mov cr0, eax ; Disable paging since the page table might be unavailiable + mov cr0, eax ; Disable paging since the page table might be unavailable mov eax, esp mov esp, [eax + 12] ; TopOfApStack diff --git a/UefiCpuPkg/Library/MpInitLib/LoongArch64/MpLib.c b/UefiCpuPkg/Library/MpInitLib/LoongArch64/MpLib.c index 03630626db..ba0b01b92e 100644 --- a/UefiCpuPkg/Library/MpInitLib/LoongArch64/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/LoongArch64/MpLib.c @@ -230,10 +230,10 @@ CollectProcessorCount ( CpuMpData->ApLoopMode = ApInRunLoop; // - // Beacuse LoongArch does not have SIPI now, the APIC ID must be obtained before + // Because LoongArch does not have SIPI now, the APIC ID must be obtained before // calling IPI to wake up the APs. If NULL is obtained, NODE0 Core0 Mailbox0 is used // as the first broadcast method to wake up all APs, and all of APs will read NODE0 - // Core0 Mailbox0 in an infinit loop. + // Core0 Mailbox0 in an infinite loop. // mProcessorResourceData = GetProcessorResourceDataFromGuidedHob (); diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index 426d998b9a..033e141401 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -2151,7 +2151,7 @@ MpInitLibInitialize ( BufferSize = ApStackSize * MaxLogicalProcessorNumber; // - // Allocate extra ApStackSize to let AP stack align on ApStackSize bounday + // Allocate extra ApStackSize to let AP stack align on ApStackSize boundary // BufferSize += ApStackSize; BufferSize += MonitorFilterSize * MaxLogicalProcessorNumber; @@ -2510,7 +2510,7 @@ MpInitLibInitialize ( @param[in] ProcessorNumber The handle number of processor. Lower 24 bits contains the actual processor number. - BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrived. + BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrieved. @param[out] ProcessorInfoBuffer A pointer to the buffer where information for the requested processor is deposited. @param[out] HealthData Return processor health data. diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index 5d10516cd8..c86f01744e 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -838,7 +838,7 @@ GetProcessorNumber ( ); /** - This funtion will try to invoke platform specific microcode shadow logic to + This function will try to invoke platform specific microcode shadow logic to relocate microcode update patches into memory. @param[in, out] CpuMpData The pointer to CPU MP Data structure. diff --git a/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c b/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c index e11dc76008..9a9d44b463 100644 --- a/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c @@ -741,7 +741,7 @@ MpInitLibEnableDisableAP ( } /** - This funtion will try to invoke platform specific microcode shadow logic to + This function will try to invoke platform specific microcode shadow logic to relocate microcode update patches into memory. @param[in, out] CpuMpData The pointer to CPU MP Data structure. diff --git a/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c b/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c index da8729e752..0bfead393b 100644 --- a/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c +++ b/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c @@ -1,5 +1,5 @@ /** @file - Function to create page talbe. + Function to create page table. Only create page table for x64, and leave the CreatePageTable empty for Ia32. Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent diff --git a/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c b/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c index 35590fb4e7..b97b90dd13 100644 --- a/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c +++ b/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c @@ -79,7 +79,7 @@ MpInitLibGetNumberOfProcessors ( @param[in] ProcessorNumber The handle number of processor. Lower 24 bits contains the actual processor number. - BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrived. + BIT24 indicates if the EXTENDED_PROCESSOR_INFORMATION will be retrieved. @param[out] ProcessorInfoBuffer A pointer to the buffer where information for the requested processor is deposited. @param[out] HealthData Return processor health data. diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.c b/UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.c index dc7095c858..a4500ad8b9 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/AmdSmmCpuFeaturesLib.c @@ -34,7 +34,7 @@ BOOLEAN mSmmCpuFeaturesSmmRelocated; /** Performs library initialization. - This initialization function contains common functionality shared betwen all + This initialization function contains common functionality shared between all library instance constructors. **/ diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/CpuFeaturesLib.h b/UefiCpuPkg/Library/SmmCpuFeaturesLib/CpuFeaturesLib.h index c2e4fbe96b..a32c24da75 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/CpuFeaturesLib.h +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/CpuFeaturesLib.h @@ -20,7 +20,7 @@ /** Performs library initialization. - This initialization function contains common functionality shared betwen all + This initialization function contains common functionality shared between all library instance constructors. **/ diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/IntelSmmCpuFeaturesLib.c b/UefiCpuPkg/Library/SmmCpuFeaturesLib/IntelSmmCpuFeaturesLib.c index 950056a714..077a701f09 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/IntelSmmCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/IntelSmmCpuFeaturesLib.c @@ -57,7 +57,7 @@ BOOLEAN *mSmrrEnabled; /** Performs library initialization. - This initialization function contains common functionality shared betwen all + This initialization function contains common functionality shared between all library instance constructors. **/ diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c index 6cb1c515c0..512516eefa 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c @@ -871,7 +871,7 @@ GetResourceSize ( If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are added - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure @retval EFI_OUT_OF_RESOURCES If nested procedure returned it and we cannot allocate more areas. **/ @@ -980,7 +980,7 @@ AddPiResource ( If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are deleted - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure **/ EFI_STATUS diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.h b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.h index 597c3abf00..656ccc01cb 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.h +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.h @@ -85,7 +85,7 @@ LoadMonitor ( If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are added - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure @retval EFI_OUT_OF_RESOURCES If nested procedure returned it and we cannot allocate more areas. **/ @@ -106,7 +106,7 @@ AddPiResource ( If 0, list must be terminated by END_OF_RESOURCES. @retval EFI_SUCCESS If resources are deleted - @retval EFI_INVALID_PARAMETER If nested procedure detected resource failer + @retval EFI_INVALID_PARAMETER If nested procedure detected resource failure **/ EFI_STATUS diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index f6917e88d1..25f4782fb0 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -32,7 +32,7 @@ UINT64 mIdtEntryTemplate = 0xffff8e000010ffe4ULL; /** TemporaryRamDone() disables the use of Temporary RAM. If present, this service is invoked - by the PEI Foundation after the EFI_PEI_PERMANANT_MEMORY_INSTALLED_PPI is installed. + by the PEI Foundation after the EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI is installed. @retval EFI_SUCCESS Use of Temporary RAM was disabled. @retval EFI_INVALID_PARAMETER Temporary RAM could not be disabled. diff --git a/UefiCpuPkg/SecCore/SecTemporaryRamDone.c b/UefiCpuPkg/SecCore/SecTemporaryRamDone.c index f921d457e8..996ce103de 100644 --- a/UefiCpuPkg/SecCore/SecTemporaryRamDone.c +++ b/UefiCpuPkg/SecCore/SecTemporaryRamDone.c @@ -140,7 +140,7 @@ GetMaxAddress ( /** TemporaryRamDone() disables the use of Temporary RAM. If present, this service is invoked - by the PEI Foundation after the EFI_PEI_PERMANANT_MEMORY_INSTALLED_PPI is installed. + by the PEI Foundation after the EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI is installed. @retval EFI_SUCCESS Use of Temporary RAM was disabled. @retval EFI_INVALID_PARAMETER Temporary RAM could not be disabled. diff --git a/UefiCpuPkg/SecMigrationPei/SecMigrationPei.c b/UefiCpuPkg/SecMigrationPei/SecMigrationPei.c index 363d44b8ff..57238f4297 100644 --- a/UefiCpuPkg/SecMigrationPei/SecMigrationPei.c +++ b/UefiCpuPkg/SecMigrationPei/SecMigrationPei.c @@ -72,7 +72,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_PEI_PPI_DESCRIPTOR mSecPerformancePpiDescript Disables the use of Temporary RAM. If present, this service is invoked by the PEI Foundation after - the EFI_PEI_PERMANANT_MEMORY_INSTALLED_PPI is installed. + the EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI is installed. @retval EFI_SUCCESS Dummy function, alway return this value. diff --git a/UefiCpuPkg/SecMigrationPei/SecMigrationPei.h b/UefiCpuPkg/SecMigrationPei/SecMigrationPei.h index 9919c8af76..833eecb412 100644 --- a/UefiCpuPkg/SecMigrationPei/SecMigrationPei.h +++ b/UefiCpuPkg/SecMigrationPei/SecMigrationPei.h @@ -80,7 +80,7 @@ RepublishSecPpis ( Disables the use of Temporary RAM. If present, this service is invoked by the PEI Foundation after - the EFI_PEI_PERMANANT_MEMORY_INSTALLED_PPI is installed. + the EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI is installed. @retval EFI_SUCCESS Dummy function, alway return this value. diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index d9ce6d1497..05baae1445 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -435,7 +435,7 @@ ## This PCD indicates whether CPU processor trace is enabled on BSP only when CPU processor trace is enabled.

# This PCD is ignored if CPU processor trace is disabled.

# TRUE - CPU processor trace is enabled on BSP only.
- # FASLE - CPU processor trace is enabled on all CPU.
+ # FALSE - CPU processor trace is enabled on all CPU.
# @Prompt Enable CPU processor trace only on BSP. gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceBspOnly|FALSE|BOOLEAN|0x60000019 @@ -443,7 +443,7 @@ # CYC/TSC timing packets will be generated to collect performance data if this PCD is TRUE. # This PCD is ignored if CPU processor trace is disabled.

# TRUE - Performance collecting will be enabled in processor trace.
- # FASLE - Performance collecting will be disabled in processor trace.
+ # FALSE - Performance collecting will be disabled in processor trace.
# @Prompt Enable performance collecting when processor trace is enabled. gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTracePerformanceCollecting|FALSE|BOOLEAN|0x60000020