X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mono%2Fmini%2Fexceptions-s390x.c;h=17bb8b044d0ea92945ed50c96f4d9c0cf3dfeedc;hb=073752949f4e7846f3a9de365660077d44e22082;hp=b95c6ed30185eb0e26916800ce2cc4b14352b60c;hpb=77d2f31ac15486f20162c0d4455a62d2191e6b16;p=mono.git diff --git a/mono/mini/exceptions-s390x.c b/mono/mini/exceptions-s390x.c index b95c6ed3018..17bb8b044d0 100644 --- a/mono/mini/exceptions-s390x.c +++ b/mono/mini/exceptions-s390x.c @@ -237,11 +237,7 @@ throw_exception (MonoObject *exc, unsigned long ip, unsigned long sp, { MonoContext ctx; int iReg; - static void (*restore_context) (MonoContext *); - if (!restore_context) - restore_context = mono_get_restore_context(); - memset(&ctx, 0, sizeof(ctx)); setup_context(&ctx); @@ -267,7 +263,7 @@ throw_exception (MonoObject *exc, unsigned long ip, unsigned long sp, } // mono_arch_handle_exception (&ctx, exc, FALSE); mono_handle_exception (&ctx, exc); - restore_context(&ctx); + mono_restore_context(&ctx); g_assert_not_reached (); }