Port safepoints to FreeBSD/x86
[sbcl.git] / src / runtime / x86-bsd-os.c
index 5a4daa2..8b62584 100644 (file)
@@ -186,6 +186,10 @@ int arch_os_thread_init(struct thread *thread) {
 #endif
 #endif
 
+#ifdef LISP_FEATURE_SB_SAFEPOINT
+    thread->selfptr = thread;
+#endif
+
 #ifdef LISP_FEATURE_C_STACK_IS_CONTROL_STACK
     stack_t sigstack;