X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fdynbind.c;h=173ae054df3e038d3d435492c202faca594cdbf7;hb=929fde778f2e5a422f9bcd8ad5f6dcf1dbfccf15;hp=5f26c2a72e7b888be6ec52efcfe55320d7ddaa81;hpb=e365f2f7a9c66d307b48fee70778f4eaa84bdcc0;p=sbcl.git diff --git a/src/runtime/dynbind.c b/src/runtime/dynbind.c index 5f26c2a..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(__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 +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