Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / utils / mach-support-unknown.c
1 /**
2  * \file
3  * mach support for cross compilers (IOW, none)
4  *
5  * Authors:
6  *   Rodrigo Kumpera (kumpera@gmail.com)
7  *
8  * (C) 2012 Xamarin, Inc.
9  */
10
11 #include <config.h>
12
13 #if defined(__MACH__)
14 #include <stdint.h>
15 #include <glib.h>
16 #include <pthread.h>
17 #include "utils/mono-sigcontext.h"
18 #include "mach-support.h"
19
20 void *
21 mono_mach_arch_get_ip (thread_state_t state)
22 {
23         g_assert_not_reached ();
24 }
25
26 void *
27 mono_mach_arch_get_sp (thread_state_t state)
28 {
29         g_assert_not_reached ();
30 }
31
32 int
33 mono_mach_arch_get_mcontext_size ()
34 {
35         g_assert_not_reached ();
36 }
37
38 void
39 mono_mach_arch_thread_states_to_mcontext (thread_state_t state, thread_state_t fpstate, void *context)
40 {
41         g_assert_not_reached ();
42 }
43
44 void
45 mono_mach_arch_mcontext_to_thread_states (void *context, thread_state_t state, thread_state_t fpstate)
46 {
47         g_assert_not_reached ();
48 }
49
50 void
51 mono_mach_arch_thread_states_to_mono_context (thread_state_t state, thread_state_t fpstate, MonoContext *context)
52 {
53         g_assert_not_reached ();
54 }
55
56 int
57 mono_mach_arch_get_thread_state_size ()
58 {
59         g_assert_not_reached ();
60 }
61
62 int
63 mono_mach_arch_get_thread_fpstate_size ()
64 {
65         g_assert_not_reached ();
66 }
67
68 kern_return_t
69 mono_mach_arch_get_thread_states (thread_port_t thread, thread_state_t state, mach_msg_type_number_t *count, thread_state_t fpstate, mach_msg_type_number_t *fpcount)
70 {
71         g_assert_not_reached ();
72 }
73
74 kern_return_t
75 mono_mach_arch_set_thread_states (thread_port_t thread, thread_state_t state, mach_msg_type_number_t count, thread_state_t fpstate, mach_msg_type_number_t fpcount)
76 {
77         g_assert_not_reached ();        
78 }
79
80 void *
81 mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
82 {
83         g_assert_not_reached ();
84 }
85
86 void
87 mono_mach_init (pthread_key_t key)
88 {
89 }
90
91 #endif