All pastes #355742 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-14 18:21 UTC
rendered paste body
Index: mini/mini-x86.h
===================================================================
--- mini/mini-x86.h     (revision 72835)
+++ mini/mini-x86.h     (working copy)
@@ -227,6 +227,7 @@
     } \
        MONO_CONTEXT_SET_IP ((ctx), (start_func)); \
        MONO_CONTEXT_SET_BP ((ctx), stackptr); \
+       MONO_CONTEXT_SET_SP ((ctx), stackptr); \
 } while (0)

 #else
@@ -235,6 +236,7 @@
                mono_arch_flush_register_windows ();    \
                MONO_CONTEXT_SET_IP ((ctx), (start_func));      \
                MONO_CONTEXT_SET_BP ((ctx), __builtin_frame_address (0));       \
+               MONO_CONTEXT_SET_SP ((ctx), __builtin_frame_address (0));       \
        } while (0)

 #endif