UefiCpuPkg: fix various typos

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster 2025-11-11 14:12:17 +01:00 committed by mergify[bot]
parent 9b7b1f369a
commit 01677e4d7a
38 changed files with 57 additions and 57 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.
**/

View file

@ -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.

View file

@ -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.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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)))

View file

@ -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.

View file

@ -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);

View file

@ -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.

View file

@ -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

View file

@ -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.
**/

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

View file

@ -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

View file

@ -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 ();

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

View file

@ -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.

View file

@ -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.
**/

View file

@ -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.
**/

View file

@ -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.
**/

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -435,7 +435,7 @@
## This PCD indicates whether CPU processor trace is enabled on BSP only when CPU processor trace is enabled.<BR><BR>
# This PCD is ignored if CPU processor trace is disabled.<BR><BR>
# TRUE - CPU processor trace is enabled on BSP only.<BR>
# FASLE - CPU processor trace is enabled on all CPU.<BR>
# FALSE - CPU processor trace is enabled on all CPU.<BR>
# @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.<BR><BR>
# TRUE - Performance collecting will be enabled in processor trace.<BR>
# FASLE - Performance collecting will be disabled in processor trace.<BR>
# FALSE - Performance collecting will be disabled in processor trace.<BR>
# @Prompt Enable performance collecting when processor trace is enabled.
gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTracePerformanceCollecting|FALSE|BOOLEAN|0x60000020