]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Sec/Ia32/SwitchRam.asm
EmulatorPkg/Sec: Fix various typos
[mirror_edk2.git] / EmulatorPkg / Sec / Ia32 / SwitchRam.asm
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