From 97eedf5dfbaffde33210fd88066247cf0b7d3325 Mon Sep 17 00:00:00 2001 From: Antoine Coeur Date: Wed, 4 Dec 2019 12:14:53 +0800 Subject: [PATCH] IntelFsp2WrapperPkg: Fix various typos Fix various typos in comments and documentation. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude Reviewed-by: Nate DeSimone Reviewed-by: Chasel Chiu Reviewed-by: Star Zeng --- IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c | 2 +- IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h | 2 +- IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformLib.h | 4 ++-- .../Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm | 6 +++--- .../FspWrapperPlatformLibSample.c | 4 ++-- .../FspWrapperHobProcessLibSample.c | 4 ++-- .../SecFspWrapperPlatformSecLibSample/Ia32/SecEntry.nasm | 2 +- .../SecFspWrapperPlatformSecLibSample/Ia32/Stack.nasm | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c index 0f8cd69a0e..b20f0805a0 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c @@ -352,7 +352,7 @@ FspsWrapperInitApiMode ( EFI_BOOT_MODE BootMode; // - // Register MemoryDiscovered Nofity to run FspSiliconInit + // Register MemoryDiscovered Notify to run FspSiliconInit // Status = PeiServicesNotifyPpi (&mPeiMemoryDiscoveredNotifyDesc); ASSERT_EFI_ERROR (Status); diff --git a/IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h b/IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h index e39054c30d..11a3faaad8 100644 --- a/IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h +++ b/IntelFsp2WrapperPkg/Include/Library/FspWrapperApiLib.h @@ -40,7 +40,7 @@ CallFspNotifyPhase ( /** Call FSP API - FspMemoryInit. - @param[in] FspmUpdDataPtr Pointer to the FSPM_UPD data sructure. + @param[in] FspmUpdDataPtr Pointer to the FSPM_UPD data structure. @param[out] HobListPtr Pointer to receive the address of the HOB list. @return EFI status returned by FspMemoryInit API. diff --git a/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformLib.h b/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformLib.h index b90f0eb783..2aa14c92fd 100644 --- a/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformLib.h +++ b/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformLib.h @@ -12,7 +12,7 @@ /** This function overrides the default configurations in the FSP-M UPD data region. - @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture. + @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure. **/ VOID @@ -24,7 +24,7 @@ UpdateFspmUpdData ( /** This function overrides the default configurations in the FSP-S UPD data region. - @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture. + @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure. **/ VOID diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm b/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm index 45c8f21255..db8e62ebc5 100644 --- a/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm +++ b/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm @@ -43,7 +43,7 @@ ASM_PFX(AsmExecute32BitCode): cli ; - ; save orignal GDTR and CS + ; save original GDTR and CS ; mov rax, ds push rax @@ -190,7 +190,7 @@ ReloadCS: pop rdi popfq ; - ; Switch to orignal GDT and CS. here rsp is pointer to the orignal GDT descriptor. + ; Switch to original GDT and CS. here rsp is pointer to the original GDT descriptor. ; lgdt [rsp] ; @@ -198,7 +198,7 @@ ReloadCS: ; add rsp, 0x10 ; - ; switch to orignal CS and GDTR + ; switch to original CS and GDTR ; pop r9 ; get CS shl r9, 32 ; rcx[32..47] <- Cs diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c index def04b1766..dddf80b76c 100644 --- a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c +++ b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c @@ -14,7 +14,7 @@ @note At this point, memory is NOT ready, PeiServices are available to use. - @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture. + @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure. **/ VOID @@ -28,7 +28,7 @@ UpdateFspmUpdData ( /** This function overrides the default configurations in the FSP-S UPD data region. - @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture. + @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure. **/ VOID diff --git a/IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/FspWrapperHobProcessLibSample.c b/IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/FspWrapperHobProcessLibSample.c index 54cebe127c..48f4b0295a 100644 --- a/IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/FspWrapperHobProcessLibSample.c +++ b/IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/FspWrapperHobProcessLibSample.c @@ -29,11 +29,11 @@ #define PEI_ADDITIONAL_MEMORY_SIZE (16 * EFI_PAGE_SIZE) /** - Get the mem size in memory type infromation table. + Get the mem size in memory type information table. @param[in] PeiServices PEI Services table. - @return the mem size in memory type infromation table. + @return the mem size in memory type information table. **/ UINT64 GetMemorySizeInMemoryTypeInformation ( diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/SecEntry.nasm b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/SecEntry.nasm index d8d0582cb4..9f190bb25b 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/SecEntry.nasm +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/SecEntry.nasm @@ -207,7 +207,7 @@ TempRamInitDone: cmp eax, 8000000Eh ;Check if EFI_NOT_FOUND returned. Error code for Microcode Update not found. je CallSecFspInit ;If microcode not found, don't hang, but continue. - cmp eax, 0 ;Check if EFI_SUCCESS retuned. + cmp eax, 0 ;Check if EFI_SUCCESS returned. jnz FspApiFailed ; ECX: start of range diff --git a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/Stack.nasm b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/Stack.nasm index ba989bd441..d7394cf286 100644 --- a/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/Stack.nasm +++ b/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/Ia32/Stack.nasm @@ -5,7 +5,7 @@ ; ; Abstract: ; -; Switch the stack from temporary memory to permenent memory. +; Switch the stack from temporary memory to permanent memory. ; ;------------------------------------------------------------------------------