7 #if defined(__OpenBSD__)
10 #include <pthread_np.h>
13 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
15 /* TODO : Determine if this code is actually still needed. It may already be covered by the case above. */
17 guint8 *current = (guint8*)&attr;
22 pthread_attr_init (&attr);
27 rslt = pthread_stackseg_np (pthread_self (), &ss);
30 *staddr = (guint8*)((size_t)ss.ss_sp - ss.ss_size);
33 pthread_attr_destroy (&attr);