IntelFsp2Pkg: Fix typos in comments

- tempory -> temporary
- immediatly -> immediately
- permenent -> permanent
- funciton -> function

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
diff --git a/IntelFsp2Pkg/FspSecCore/SecMain.c b/IntelFsp2Pkg/FspSecCore/SecMain.c
index fa556bf..0432dee 100644
--- a/IntelFsp2Pkg/FspSecCore/SecMain.c
+++ b/IntelFsp2Pkg/FspSecCore/SecMain.c
@@ -39,7 +39,7 @@
 

 

   @param[in] SizeOfRam          Size of the temporary memory available for use.

-  @param[in] TempRamBase        Base address of tempory ram

+  @param[in] TempRamBase        Base address of temporary ram

   @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.

   @param[in] PeiCore            PeiCore entry point.

   @param[in] BootLoaderStack    BootLoader stack.

@@ -215,8 +215,8 @@
 

   //

   // SecSwitchStack function must be invoked after the memory migration

-  // immediatly, also we need fixup the stack change caused by new call into

-  // permenent memory.

+  // immediately, also we need fixup the stack change caused by new call into

+  // permanent memory.

   //

   SecSwitchStack (

     (UINT32) (UINTN) OldStack,

diff --git a/IntelFsp2Pkg/FspSecCore/SecMain.h b/IntelFsp2Pkg/FspSecCore/SecMain.h
index 33f7362..291bc5c 100644
--- a/IntelFsp2Pkg/FspSecCore/SecMain.h
+++ b/IntelFsp2Pkg/FspSecCore/SecMain.h
@@ -105,7 +105,7 @@
 

 

   @param[in] SizeOfRam          Size of the temporary memory available for use.

-  @param[in] TempRamBase        Base address of tempory ram

+  @param[in] TempRamBase        Base address of temporary ram

   @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.

   @param[in] PeiCore            PeiCore entry point.

   @param[in] BootLoaderStack    BootLoader stack.

diff --git a/IntelFsp2Pkg/Include/Library/FspSwitchStackLib.h b/IntelFsp2Pkg/Include/Library/FspSwitchStackLib.h
index e90b13e..fee44a3 100644
--- a/IntelFsp2Pkg/Include/Library/FspSwitchStackLib.h
+++ b/IntelFsp2Pkg/Include/Library/FspSwitchStackLib.h
@@ -16,7 +16,7 @@
 

 /**

 

-  This funciton will switch the current stack to the previous saved stack.

+  This function will switch the current stack to the previous saved stack.

   Before calling the previous stack has to be set in  FSP_GLOBAL_DATA.CoreStack.

                     EIP

                     FLAGS  16 bit  FLAGS  16 bit