[w32handle] Initialize them earlier
[mono-project.git] / mono / utils / mach-support-unknown.c
blob20012550114610c911623f8a0cbdf9af0197c277
1 /*
2 * mach-support-unknown.c: mach support for cross compilers (IOW, none)
4 * Authors:
5 * Rodrigo Kumpera (kumpera@gmail.com)
7 * (C) 2012 Xamarin, Inc.
8 */
10 #include <config.h>
12 #if defined(__MACH__)
13 #include <stdint.h>
14 #include <glib.h>
15 #include <pthread.h>
16 #include "utils/mono-sigcontext.h"
17 #include "mach-support.h"
19 void *
20 mono_mach_arch_get_ip (thread_state_t state)
22 g_assert_not_reached ();
25 void *
26 mono_mach_arch_get_sp (thread_state_t state)
28 g_assert_not_reached ();
31 int
32 mono_mach_arch_get_mcontext_size ()
34 g_assert_not_reached ();
37 void
38 mono_mach_arch_thread_state_to_mcontext (thread_state_t state, void *context)
40 g_assert_not_reached ();
43 void
44 mono_mach_arch_mcontext_to_thread_state (void *context, thread_state_t state)
46 g_assert_not_reached ();
49 void
50 mono_mach_arch_thread_state_to_mono_context (thread_state_t state, MonoContext *context)
52 g_assert_not_reached ();
55 int
56 mono_mach_arch_get_thread_state_size ()
58 g_assert_not_reached ();
61 kern_return_t
62 mono_mach_arch_get_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t *count)
64 g_assert_not_reached ();
67 kern_return_t
68 mono_mach_arch_set_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t count)
70 g_assert_not_reached ();
73 void *
74 mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
76 g_assert_not_reached ();
79 void
80 mono_mach_init (pthread_key_t key)
84 #endif