X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fdynbind.c;h=173ae054df3e038d3d435492c202faca594cdbf7;hb=3f757cc9b3d6f14600365b7c0dd7d213269d7242;hp=7b410c35d6110be36223cab554112a3b0ecb8d80;hpb=f7b3fe1bd86348bfd2a3c506e437084752142c83;p=sbcl.git diff --git a/src/runtime/dynbind.c b/src/runtime/dynbind.c index 7b410c3..173ae05 100644 --- a/src/runtime/dynbind.c +++ b/src/runtime/dynbind.c @@ -13,16 +13,17 @@ * files for more information. */ -#include "runtime.h" #include "sbcl.h" +#include "runtime.h" #include "globals.h" #include "dynbind.h" #include "thread.h" #include "genesis/symbol.h" #include "genesis/binding.h" #include "genesis/thread.h" +#include "genesis/static-symbols.h" -#if defined(LISP_FEATURE_X86) +#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 +36,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