summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg/Sec/X64/SwitchRam.S
diff options
context:
space:
mode:
Diffstat (limited to 'EmulatorPkg/Sec/X64/SwitchRam.S')
-rw-r--r--EmulatorPkg/Sec/X64/SwitchRam.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/EmulatorPkg/Sec/X64/SwitchRam.S b/EmulatorPkg/Sec/X64/SwitchRam.S
index a7219bf21f..9ed1f911e7 100644
--- a/EmulatorPkg/Sec/X64/SwitchRam.S
+++ b/EmulatorPkg/Sec/X64/SwitchRam.S
@@ -19,7 +19,7 @@
// SecTemporaryRamSupport (
// IN CONST EFI_PEI_SERVICES **PeiServices, // %rcx
// IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase, // %rdx
-// IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase, // %r8
+// IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase, // %r8
// IN UINTN CopySize // %r9
// )
//
@@ -28,7 +28,7 @@ ASM_PFX(SecTemporaryRamSupport):
// Adjust callers %rbp to account for stack move
subq %rdx, %rbp // Calc offset of %rbp in Temp Memory
addq %r8, %rbp // add in permanent base to offset
-
+
pushq %rbp // stack frame is for the debugger
movq %rsp, %rbp
@@ -51,13 +51,13 @@ ASM_PFX(SecTemporaryRamSupport):
popq %r9 // CopySize (old stack)
popq %r8 // PermanentMemoryBase (old stack)
popq %rdx // TemporaryMemoryBase (old stack)
-
+
movq %rsp, %rcx // Move to new stack
subq %rdx, %rcx // Calc offset of stack in Temp Memory
addq %r8, %rcx // Calc PermanentMemoryBase address
- movq %rcx, %rsp // Update stack
+ movq %rcx, %rsp // Update stack
// Stack now points to permanent memory
-
+
// ZeroMem (TemporaryMemoryBase /* rcx */, CopySize /* rdx */);
movq %rdx, %rcx
movq %r9, %rdx