X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fthread.c;h=5b8ec4ac475f9b4c8ed26a6f38fa97ee411423af;hb=9a19ce460a70a6c1de36095b3e2621116b91cc80;hp=a838c7d550095bf42aeb6a4cbdac0c3199aa95de;hpb=5759fa78f2289c7e891aaded2a54e069b8bdac01;p=sbcl.git diff --git a/src/runtime/thread.c b/src/runtime/thread.c index a838c7d..5b8ec4a 100644 --- a/src/runtime/thread.c +++ b/src/runtime/thread.c @@ -91,6 +91,9 @@ pthread_mutex_t all_threads_lock = PTHREAD_MUTEX_INITIALIZER; #ifdef LOCK_CREATE_THREAD static pthread_mutex_t create_thread_lock = PTHREAD_MUTEX_INITIALIZER; #endif +#ifdef LISP_FEATURE_GCC_TLS +__thread struct thread *current_thread; +#endif #endif #if defined(LISP_FEATURE_X86) || defined(LISP_FEATURE_X86_64) @@ -383,7 +386,7 @@ create_thread_struct(lispobj initial_function) { * padding. */ aligned_spaces = (void *)((((unsigned long)(char *)spaces) + BACKEND_PAGE_SIZE - 1) - & ~(BACKEND_PAGE_SIZE - 1)); + & ~(unsigned long)(BACKEND_PAGE_SIZE - 1)); per_thread=(union per_thread_data *) (aligned_spaces+ THREAD_CONTROL_STACK_SIZE+