summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Sec
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-06-10 19:02:44 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-06-10 17:19:59 +0000
commitf0b97e165e0af79ac9eb3c6ac7697f9183afc7cb (patch)
tree28fe46e2df3a1c15e997d52ece3940cbfe584cbc /OvmfPkg/Sec
parentccc269756f773d35aab67ccb935fa9548f30cff3 (diff)
downloadedk2-f0b97e165e0af79ac9eb3c6ac7697f9183afc7cb.tar.gz
edk2-f0b97e165e0af79ac9eb3c6ac7697f9183afc7cb.tar.bz2
edk2-f0b97e165e0af79ac9eb3c6ac7697f9183afc7cb.zip
Revert "OvmfPkg/Sec: fix stack switch"
This reverts commit ff36b2550f94dc5fac838cf298ae5a23cfddf204. Has no effect because GCC_IA32_CC_FLAGS and GCC_X64_CC_FLAGS are unused. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Sec')
-rw-r--r--OvmfPkg/Sec/SecMain.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c
index 3ca0dcdfd3..1167d22a68 100644
--- a/OvmfPkg/Sec/SecMain.c
+++ b/OvmfPkg/Sec/SecMain.c
@@ -1052,16 +1052,12 @@ TemporaryRamMigration (
if (SetJump (&JumpBuffer) == 0) {
#if defined (MDE_CPU_IA32)
JumpBuffer.Esp = JumpBuffer.Esp + DebugAgentContext.StackMigrateOffset;
- #ifndef OMIT_FRAME_POINTER
JumpBuffer.Ebp = JumpBuffer.Ebp + DebugAgentContext.StackMigrateOffset;
#endif
- #endif
#if defined (MDE_CPU_X64)
JumpBuffer.Rsp = JumpBuffer.Rsp + DebugAgentContext.StackMigrateOffset;
- #ifndef OMIT_FRAME_POINTER
JumpBuffer.Rbp = JumpBuffer.Rbp + DebugAgentContext.StackMigrateOffset;
#endif
- #endif
LongJump (&JumpBuffer, (UINTN)-1);
}