From d80e517dc02941c51b8732a9a449eaac0c388c94 Mon Sep 17 00:00:00 2001 From: David Lichteblau Date: Fri, 21 Dec 2012 20:27:33 +0100 Subject: [PATCH] Re-complicate all_threads check in arch_os_get_current_thread This check used to be x86-only, and apparently for good reason. Make it so again. --- src/runtime/thread.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/runtime/thread.h b/src/runtime/thread.h index 6de8f89..dd36df5 100644 --- a/src/runtime/thread.h +++ b/src/runtime/thread.h @@ -303,9 +303,10 @@ static inline struct thread *arch_os_get_current_thread(void) return me; #else - if (!all_threads) - /* no need to bother */ - return 0; + +# if defined(LISP_FEATURE_X86) + if (!all_threads) return 0; +#endif /* Otherwise, use pthreads to find the right value. We do not load * directly from %fs:this even on x86 platforms (like Linux and -- 1.7.10.4