#ifdef LISP_FEATURE_SB_THREAD
if(thread && sym->tls_index) {
lispobj *r = &(((union per_thread_data *)thread)
- ->dynamic_values[fixnum_value(sym->tls_index)]);
+ ->dynamic_values[(sym->tls_index) >> WORD_SHIFT]);
if((*r)!=NO_TLS_VALUE_MARKER_WIDETAG) return r;
}
#endif
if(thread && sym->tls_index) {
lispobj r=
((union per_thread_data *)thread)
- ->dynamic_values[fixnum_value(sym->tls_index)];
+ ->dynamic_values[(sym->tls_index) >> WORD_SHIFT];
if(r!=NO_TLS_VALUE_MARKER_WIDETAG) return r;
}
#endif
(pointer_sized_uint_t)(tagged_symbol_pointer-OTHER_POINTER_LOWTAG);
#ifdef LISP_FEATURE_SB_THREAD
return ((union per_thread_data *)thread)
- ->dynamic_values[fixnum_value(sym->tls_index)];
+ ->dynamic_values[(sym->tls_index) >> WORD_SHIFT];
#else
return sym->value;
#endif
#ifdef LISP_FEATURE_SB_THREAD
if(thread && sym->tls_index) {
lispobj *pr= &(((union per_thread_data *)thread)
- ->dynamic_values[fixnum_value(sym->tls_index)]);
+ ->dynamic_values[(sym->tls_index) >> WORD_SHIFT]);
if(*pr!=NO_TLS_VALUE_MARKER_WIDETAG) {
*pr=val;
return;
struct symbol *sym= (struct symbol *)
(pointer_sized_uint_t)(tagged_symbol_pointer-OTHER_POINTER_LOWTAG);
((union per_thread_data *)thread)
- ->dynamic_values[fixnum_value(sym->tls_index)]
+ ->dynamic_values[(sym->tls_index) >> WORD_SHIFT]
=val;
#else
SetSymbolValue(tagged_symbol_pointer,val,thread) ;
SymbolValue(BINDING_STACK_POINTER, thread)
#define set_binding_stack_pointer(thread,value) \
SetSymbolValue(BINDING_STACK_POINTER, (lispobj)(value), thread)
+#define access_control_stack_pointer(thread) \
+ (current_control_stack_pointer)
#else
#define get_binding_stack_pointer(thread) \
(current_binding_stack_pointer)