X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-sunos-os.c;h=0edd0b1d7b8582b7deb91c70fe1e6f0c81930cf1;hb=c8617f57d0413beb2890e94dabe227cef9c5ddad;hp=4e3f85668159df58337dbf6797084a40de4dfae0;hpb=8bea80bd6b4daca547ceb46f54ebed14cc8e7d93;p=sbcl.git diff --git a/src/runtime/x86-sunos-os.c b/src/runtime/x86-sunos-os.c index 4e3f856..0edd0b1 100644 --- a/src/runtime/x86-sunos-os.c +++ b/src/runtime/x86-sunos-os.c @@ -102,6 +102,10 @@ int arch_os_thread_init(struct thread *thread) { thread->tls_cookie = sel; pthread_setspecific(specials,thread); + +# ifdef LISP_FEATURE_SB_SAFEPOINT + thread->selfptr = thread; +# endif #endif #ifdef LISP_FEATURE_C_STACK_IS_CONTROL_STACK @@ -121,8 +125,8 @@ int arch_os_thread_cleanup(struct thread *thread) { int n = thread->tls_cookie; struct ssd delete = { n, 0, 0, 0, 0}; - /* Set the %%fs register back to 0 and free the the ldt - * by setting it to NULL. + /* Set the %%fs register back to 0 and free the ldt by setting it + * to NULL. */ FSHOW_SIGNAL((stderr, "/ TLS: Freeing LDT %x\n", n));