[jit] Fix a regression introduced by the addition of an assert in bf467001b10a0e4fe38...
[mono.git] / mono / mini / tramp-ia64.c
index 5a3eeebeb0d38c877e32894796bd6c01f3ecdd6a..d21ab21e17188c5cbb20c1ef74544bbb1cf80117 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "mini.h"
 #include "mini-ia64.h"
+#include "jit-icalls.h"
 
 #define GP_SCRATCH_REG 31
 #define GP_SCRATCH_REG2 30
@@ -67,7 +68,7 @@ mono_arch_get_unbox_trampoline (MonoMethod *m, gpointer addr)
        desc [0] = buf;
        desc [1] = func_gp;
 
-       mono_tramp_info_register (mono_tramp_info_create (NULL, buf, code.buf - buf, NULL, NULL));
+       mono_tramp_info_register (mono_tramp_info_create (NULL, buf, code.buf - buf, NULL, NULL), domain);
 
        return desc;
 }
@@ -256,7 +257,7 @@ mono_arch_create_generic_trampoline (MonoTrampolineType tramp_type, MonoTrampInf
        /* This is not perf critical code so no need to check the interrupt flag */
        ia64_mov (code, l2, IA64_R8);
 
-       tramp = (guint8*)mono_thread_force_interruption_checkpoint;
+       tramp = (guint8*)mono_interruption_checkpoint_from_trampoline;
        ia64_movl (code, l0, tramp);
        ia64_ld8_inc_imm (code, l1, l0, 8);
        ia64_mov_to_br (code, IA64_B6, l1);