X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fdynbind.c;h=12da1cb42a59529b7050cefb1948737033ad94df;hb=15d6e7c9a2c3234f95dfe278046fa2fee1b0c007;hp=5f26c2a72e7b888be6ec52efcfe55320d7ddaa81;hpb=e365f2f7a9c66d307b48fee70778f4eaa84bdcc0;p=sbcl.git diff --git a/src/runtime/dynbind.c b/src/runtime/dynbind.c index 5f26c2a..12da1cb 100644 --- a/src/runtime/dynbind.c +++ b/src/runtime/dynbind.c @@ -13,8 +13,8 @@ * files for more information. */ -#include "runtime.h" #include "sbcl.h" +#include "runtime.h" #include "globals.h" #include "dynbind.h" #include "thread.h" @@ -22,7 +22,7 @@ #include "genesis/binding.h" #include "genesis/thread.h" -#if defined(__i386__) +#if defined(BINDING_STACK_POINTER) #define GetBSP() ((struct binding *)SymbolValue(BINDING_STACK_POINTER,thread)) #define SetBSP(value) SetSymbolValue(BINDING_STACK_POINTER, (lispobj)(value),thread) #else @@ -35,7 +35,9 @@ void bind_variable(lispobj symbol, lispobj value, void *th) lispobj old_tl_value; struct binding *binding; struct thread *thread=(struct thread *)th; +#ifdef LISP_FEATURE_SB_THREAD struct symbol *sym=(struct symbol *)native_pointer(symbol); +#endif binding = GetBSP(); SetBSP(binding+1); #ifdef LISP_FEATURE_SB_THREAD