Skip to content

Commit

Permalink
[runtime] Fix the sparc build.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Oct 24, 2013
1 parent 0ab2677 commit 6a9c585
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mono/mini/tramp-sparc.c
Expand Up @@ -273,3 +273,20 @@ mono_arch_create_rgctx_lazy_fetch_trampoline (guint32 slot, MonoTrampInfo **info
g_assert_not_reached ();
return NULL;
}

gpointer
mono_arch_get_nullified_class_init_trampoline (MonoTrampInfo **info)
{
guint8 *buf, *code;

code = buf = mono_global_codeman_reserve (16);

sparc_ret (code);

mono_arch_flush_icache (buf, code - buf);

if (info)
*info = mono_tramp_info_create ("nullified_class_init_trampoline", buf, code - buf, NULL, NULL);

return buf;
}

0 comments on commit 6a9c585

Please sign in to comment.