X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Ftramp-alpha.c;h=186d9bc08cbe791bed96028e04dcf2857ba3f0af;hb=2c9f304f50cd3559a311215eb148ed0c0db182d7;hp=7138813a015f1c127b2fe734c5bbce127b79cac3;hpb=22e91a7a39a2b5c026163b48595de2c91c5cc0f0;p=mono.git diff --git a/mono/mini/tramp-alpha.c b/mono/mini/tramp-alpha.c index 7138813a015..186d9bc08cb 100644 --- a/mono/mini/tramp-alpha.c +++ b/mono/mini/tramp-alpha.c @@ -472,14 +472,12 @@ mono_arch_create_specific_trampoline (gpointer arg1, alpha_jmp(code, alpha_zero, alpha_at, 0); g_assert (((char *)code - (char *)buf) <= TRAMPOLINE_SIZE); - mono_domain_lock (domain); /* * FIXME: Changing the size to code - buf causes strange crashes during * mcs bootstrap. */ - real_code = mono_code_manager_reserve (domain->code_mp, TRAMPOLINE_SIZE); + real_code = mono_domain_code_reserve (domain, TRAMPOLINE_SIZE); size = (char *)code - (char *)buf; - mono_domain_unlock (domain); memcpy (real_code, buf, size); @@ -499,7 +497,7 @@ mono_arch_create_specific_trampoline (gpointer arg1, /*========================= End of Function ========================*/ void -mono_arch_nullify_class_init_trampoline (guint8 *code, gssize *regs) +mono_arch_nullify_class_init_trampoline (guint8 *code, mgreg_t *regs) { unsigned int *pcode = (unsigned int *)code; @@ -591,9 +589,7 @@ mono_arch_get_unbox_trampoline (MonoGenericSharingContext *gsctx, MonoMethod *m, if (MONO_TYPE_ISSTRUCT (mono_method_signature (m)->ret)) this_reg = 17; //R17 - mono_domain_lock (domain); - start_code = code = (unsigned int *)mono_code_manager_reserve (domain->code_mp, 32); - mono_domain_unlock (domain); + start_code = code = (unsigned int *)mono_domain_code_reserve (domain, 32); // Adjust this by size of MonoObject alpha_addq_(code, this_reg, sizeof(MonoObject), this_reg); // 0 @@ -618,13 +614,13 @@ mono_arch_get_unbox_trampoline (MonoGenericSharingContext *gsctx, MonoMethod *m, } void -mono_arch_nullify_plt_entry (guint8 *code) +mono_arch_nullify_plt_entry (guint8 *code, mgreg_t *regs) { g_assert_not_reached (); } void -mono_arch_patch_plt_entry (guint8 *code, guint8 *addr) +mono_arch_patch_plt_entry (guint8 *code, gpointer *got, mgreg_t *regs, guint8 *addr) { g_assert_not_reached (); } @@ -636,11 +632,3 @@ mono_arch_create_rgctx_lazy_fetch_trampoline (guint32 encoded_offset) g_assert_not_reached (); return NULL; } - -guint32 -mono_arch_get_rgctx_lazy_fetch_offset (gpointer *regs) -{ - /* FIXME: implement! */ - g_assert_not_reached (); - return 0; -}