projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.29.2: implement fixnump/signed-word VOP on x86 and x86-64
[sbcl.git]
/
src
/
runtime
/
x86-64-bsd-os.c
diff --git
a/src/runtime/x86-64-bsd-os.c
b/src/runtime/x86-64-bsd-os.c
index
c1e3c32
..
3b45bc5
100644
(file)
--- a/
src/runtime/x86-64-bsd-os.c
+++ b/
src/runtime/x86-64-bsd-os.c
@@
-25,7
+25,7
@@
kern_return_t mach_thread_init(mach_port_t thread_exception_port);
* entails; unfortunately, currently the situation is worse, not
* better, than in the above paragraph. */
* entails; unfortunately, currently the situation is worse, not
* better, than in the above paragraph. */
-#if defined(LISP_FEATURE_FREEBSD) || defined(LISP_FEATURE_DARWIN)
+#if defined(LISP_FEATURE_FREEBSD) || defined(LISP_FEATURE_DARWIN) || defined(LISP_FEATURE_OPENBSD)
os_context_register_t *
os_context_register_addr(os_context_t *context, int offset)
{
os_context_register_t *
os_context_register_addr(os_context_t *context, int offset)
{
@@
-89,8
+89,12
@@
os_flush_icache(os_vm_address_t address, os_vm_size_t length)
int arch_os_thread_init(struct thread *thread) {
stack_t sigstack;
#ifdef LISP_FEATURE_SB_THREAD
int arch_os_thread_init(struct thread *thread) {
stack_t sigstack;
#ifdef LISP_FEATURE_SB_THREAD
+#ifdef LISP_FEATURE_GCC_TLS
+ current_thread = thread;
+#else
pthread_setspecific(specials,thread);
#endif
pthread_setspecific(specials,thread);
#endif
+#endif
#ifdef LISP_FEATURE_MACH_EXCEPTION_HANDLER
mach_thread_init(THREAD_STRUCT_TO_EXCEPTION_PORT(thread));
#ifdef LISP_FEATURE_MACH_EXCEPTION_HANDLER
mach_thread_init(THREAD_STRUCT_TO_EXCEPTION_PORT(thread));