mono_thread_create_internal (domain, func, arg, FALSE, FALSE, 0);
}
-#if defined(HOST_WIN32) && defined(__GNUC__)
+#if defined(HOST_WIN32) && defined(__GNUC__) && defined(TARGET_X86)
static __inline__ __attribute__((always_inline))
/* This is not defined by gcc */
unsigned long long
return;
/* FIXME: simplify the mess below */
#elif defined(HOST_WIN32)
+#ifdef TARGET_X86
/* http://en.wikipedia.org/wiki/Win32_Thread_Information_Block */
void* tib = (void*)__readfsdword(0x18);
guint8 *stackTop = (guint8*)*(int*)((char*)tib + 4);
*staddr = stackBottom;
*stsize = stackTop - stackBottom;
+#else
+ *staddr = NULL;
+ *stsize = (size_t)-1;
+#endif
return;
#else
pthread_attr_t attr;