3 #if defined(__OpenBSD__)
6 #include <pthread_np.h>
9 mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
11 /* TODO : Determine if this code is actually still needed. It may already be covered by the case above. */
13 guint8 *current = (guint8*)&attr;
18 pthread_attr_init (&attr);
23 rslt = pthread_stackseg_np (pthread_self (), &ss);
26 *staddr = (guint8*)((size_t)ss.ss_sp - ss.ss_size);
29 pthread_attr_destroy (&attr);