/*
 * mach-support-unknown.c: mach support for cross compilers (IOW, none)
 *
 * Authors:
 *   Rodrigo Kumpera (kumpera@gmail.com)
 *
 * (C) 2012 Xamarin, Inc.
 */

#include <config.h>

#if defined(__MACH__)
#include <stdint.h>
#include <glib.h>
#include <pthread.h>
#include "utils/mono-sigcontext.h"
#include "mach-support.h"

void *
mono_mach_arch_get_ip (thread_state_t state)
{
	g_assert_not_reached ();
}

void *
mono_mach_arch_get_sp (thread_state_t state)
{
	g_assert_not_reached ();
}

int
mono_mach_arch_get_mcontext_size ()
{
	g_assert_not_reached ();
}

void
mono_mach_arch_thread_state_to_mcontext (thread_state_t state, void *context)
{
	g_assert_not_reached ();
}

void
mono_mach_arch_mcontext_to_thread_state (void *context, thread_state_t state)
{
	g_assert_not_reached ();
}

void
mono_mach_arch_thread_state_to_mono_context (thread_state_t state, MonoContext *context)
{
	g_assert_not_reached ();
}

int
mono_mach_arch_get_thread_state_size ()
{
	g_assert_not_reached ();
}

kern_return_t
mono_mach_arch_get_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t *count)
{
	g_assert_not_reached ();
}

kern_return_t
mono_mach_arch_set_thread_state (thread_port_t thread, thread_state_t state, mach_msg_type_number_t count)
{
	g_assert_not_reached ();	
}

void *
mono_mach_arch_get_tls_value_from_thread (pthread_t thread, guint32 key)
{
	g_assert_not_reached ();
}

void
mono_mach_init (pthread_key_t key)
{
}

#endif
