summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/debug/ee/i386/dbghelpers.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/debug/ee/i386/dbghelpers.S b/src/debug/ee/i386/dbghelpers.S
index d0a11011ca..f15ca5abd8 100644
--- a/src/debug/ee/i386/dbghelpers.S
+++ b/src/debug/ee/i386/dbghelpers.S
@@ -9,10 +9,14 @@
// @dbgtodo- once we port Funceval, use the ExceptionHijack stub instead of this func-eval stub.
NESTED_ENTRY FuncEvalHijack, _TEXT, UnhandledExceptionHandlerUnix
+#define STK_ALIGN_PADDING 12
+ sub esp, STK_ALIGN_PADDING
push eax // the ptr to the DebuggerEval
+ CHECK_STACK_ALIGNMENT
call C_FUNC(FuncEvalHijackWorker)
+ add esp, (4 + STK_ALIGN_PADDING)
jmp eax // return is the patch addresss to jmp to
-
+#undef STK_ALIGN_PADDING
NESTED_END FuncEvalHijack, _TEXT
//