]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmulatorPkg/Sec: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:17 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Acked-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-5-philmd@redhat.com>

EmulatorPkg/Sec/Ia32/SwitchRam.S
EmulatorPkg/Sec/Ia32/SwitchRam.asm
EmulatorPkg/Sec/Sec.c
EmulatorPkg/Sec/Sec.h
EmulatorPkg/Sec/X64/SwitchRam.S
EmulatorPkg/Sec/X64/SwitchRam.asm

index f24529cc8e61168d06e01d57368315ae7d5d17eb..d8298223a9b03ad1997d134ac4e3951974e26c3e 100644 (file)
@@ -9,7 +9,7 @@
 #\r
 # Abstract:\r
 #\r
-#   Switch the stack from temporary memory to permenent memory.\r
+#   Switch the stack from temporary memory to permanent memory.\r
 #\r
 #------------------------------------------------------------------------------\r
 \r
@@ -36,7 +36,7 @@ ASM_PFX(SecSwitchStack):
 \r
 #\r
 # !!CAUTION!! this function address's is pushed into stack after\r
-# migration of whole temporary memory, so need save it to permenent\r
+# migration of whole temporary memory, so need save it to permanent\r
 # memory at first!\r
 #\r
 \r
@@ -44,14 +44,14 @@ ASM_PFX(SecSwitchStack):
     movl  24(%esp), %ecx            # Save the second parameter\r
 \r
 #\r
-# Save this function's return address into permenent memory at first.\r
-# Then, Fixup the esp point to permenent memory\r
+# Save this function's return address into permanent memory at first.\r
+# Then, Fixup the esp point to permanent memory\r
 #\r
 \r
     movl  %esp, %eax\r
     subl  %ebx, %eax\r
     addl  %ecx, %eax\r
-    movl  (%esp), %edx                 # copy pushed register's value to permenent memory\r
+    movl  (%esp), %edx                 # copy pushed register's value to permanent memory\r
     movl  %edx, (%eax)\r
     movl  4(%esp), %edx\r
     movl  %edx, 4(%eax)\r
@@ -61,16 +61,16 @@ ASM_PFX(SecSwitchStack):
     movl  %edx, 12(%eax)\r
     movl  16(%esp), %edx\r
     movl  %edx, 16(%eax)\r
-    movl  %eax, %esp                   # From now, esp is pointed to permenent memory\r
+    movl  %eax, %esp                   # From now, esp is pointed to permanent memory\r
 \r
 #\r
-# Fixup the ebp point to permenent memory\r
+# Fixup the ebp point to permanent memory\r
 #\r
 #ifndef __APPLE__\r
     movl   %ebp, %eax\r
     subl   %ebx, %eax\r
     addl   %ecx, %eax\r
-    movl   %eax, %ebp                  # From now, ebp is pointed to permenent memory\r
+    movl   %eax, %ebp                  # From now, ebp is pointed to permanent memory\r
 \r
 #\r
 # Fixup callee's ebp point for PeiDispatch\r
@@ -78,7 +78,7 @@ ASM_PFX(SecSwitchStack):
     movl   (%ebp), %eax\r
     subl   %ebx, %eax\r
     addl   %ecx, %eax\r
-    movl   %eax, (%ebp)                # From now, Temporary's PPI caller's stack is in permenent memory\r
+    movl   %eax, (%ebp)                # From now, Temporary's PPI caller's stack is in permanent memory\r
 #endif\r
 \r
     pop   %edx\r
index 9c7908f7a04ca59216245a85087242663a864b1e..99ef00298069f44f03aa0765c0a4ea5825a96624 100644 (file)
@@ -9,7 +9,7 @@
 ;\r
 ; Abstract:\r
 ;\r
-;   Switch the stack from temporary memory to permenent memory.\r
+;   Switch the stack from temporary memory to permanent memory.\r
 ;\r
 ;------------------------------------------------------------------------------\r
 \r
@@ -36,7 +36,7 @@ SecSwitchStack   PROC
 \r
     ;\r
     ; !!CAUTION!! this function address's is pushed into stack after\r
-    ; migration of whole temporary memory, so need save it to permenent\r
+    ; migration of whole temporary memory, so need save it to permanent\r
     ; memory at first!\r
     ;\r
 \r
@@ -44,13 +44,13 @@ SecSwitchStack   PROC
     mov   ecx, [esp + 24]          ; Save the second parameter\r
 \r
     ;\r
-    ; Save this function's return address into permenent memory at first.\r
-    ; Then, Fixup the esp point to permenent memory\r
+    ; Save this function's return address into permanent memory at first.\r
+    ; Then, Fixup the esp point to permanent memory\r
     ;\r
     mov   eax, esp\r
     sub   eax, ebx\r
     add   eax, ecx\r
-    mov   edx, dword ptr [esp]         ; copy pushed register's value to permenent memory\r
+    mov   edx, dword ptr [esp]         ; copy pushed register's value to permanent memory\r
     mov   dword ptr [eax], edx\r
     mov   edx, dword ptr [esp + 4]\r
     mov   dword ptr [eax + 4], edx\r
@@ -58,17 +58,17 @@ SecSwitchStack   PROC
     mov   dword ptr [eax + 8], edx\r
     mov   edx, dword ptr [esp + 12]\r
     mov   dword ptr [eax + 12], edx\r
-    mov   edx, dword ptr [esp + 16]    ; Update this function's return address into permenent memory\r
+    mov   edx, dword ptr [esp + 16]    ; Update this function's return address into permanent memory\r
     mov   dword ptr [eax + 16], edx\r
-    mov   esp, eax                     ; From now, esp is pointed to permenent memory\r
+    mov   esp, eax                     ; From now, esp is pointed to permanent memory\r
 \r
     ;\r
-    ; Fixup the ebp point to permenent memory\r
+    ; Fixup the ebp point to permanent memory\r
     ;\r
     mov   eax, ebp\r
     sub   eax, ebx\r
     add   eax, ecx\r
-    mov   ebp, eax                ; From now, ebp is pointed to permenent memory\r
+    mov   ebp, eax                ; From now, ebp is pointed to permanent memory\r
 \r
     ;\r
     ; Fixup callee's ebp point for PeiDispatch\r
@@ -76,7 +76,7 @@ SecSwitchStack   PROC
     mov   eax, dword ptr [ebp]\r
     sub   eax, ebx\r
     add   eax, ecx\r
-    mov   dword ptr [ebp], eax    ; From now, Temporary's PPI caller's stack is in permenent memory\r
+    mov   dword ptr [ebp], eax    ; From now, Temporary's PPI caller's stack is in permanent memory\r
 \r
     pop   edx\r
     pop   ecx\r
index b734d2bb87995655df8e66262c258736715174fb..1c0f73d66944d3b4e4c153b3e082aa7f3d68c6de 100644 (file)
@@ -1,5 +1,5 @@
 /*++ @file\r
-  Stub SEC that is called from the OS appliation that is the root of the emulator.\r
+  Stub SEC that is called from the OS application that is the root of the emulator.\r
 \r
   The OS application will call the SEC with the PEI Entry Point API.\r
 \r
@@ -90,7 +90,7 @@ _ModuleEntryPoint (
     SecReseveredMemorySize += sizeof (EFI_PEI_PPI_DESCRIPTOR);\r
 \r
     if ((Ppi->Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) == EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) {\r
-      // Since we are appending, need to clear out privious list terminator.\r
+      // Since we are appending, need to clear out previous list terminator.\r
       Ppi->Flags &= ~EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;\r
       break;\r
     }\r
@@ -138,4 +138,3 @@ _ModuleEntryPoint (
 }\r
 \r
 \r
-\r
index dd301f788868d3acd75c697130f116445fa0b7aa..42554e05b56e3a8e5e9c4b3ad148394d88183c53 100644 (file)
@@ -1,5 +1,5 @@
 /*++ @file\r
-  Stub SEC that is called from the OS appliation that is the root of the emulator.\r
+  Stub SEC that is called from the OS application that is the root of the emulator.\r
 \r
   The OS application will call the SEC with the PEI Entry Point API.\r
 \r
@@ -23,7 +23,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 \r
 //\r
-// I think this shold be defined in a MdePkg include file?\r
+// I think this should be defined in a MdePkg include file?\r
 //\r
 VOID\r
 EFIAPI\r
index 7ddb6c854b00a92ce4d20c66f3827ee9aaca5977..59d4e2edef2a713f108d8fda033ad5908f228654 100644 (file)
@@ -1,7 +1,7 @@
 #------------------------------------------------------------------------------\r
 #\r
 # Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-# Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 #------------------------------------------------------------------------------\r
index 73530bff39c2fd7897a8feee6d22dc070488bfb3..e66bda5bf4e61e2c7d025ea0923ad9cf5dfbda5b 100644 (file)
@@ -1,7 +1,7 @@
 ;------------------------------------------------------------------------------\r
 ;\r
 ; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
-; Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
+; Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ;------------------------------------------------------------------------------\r