X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fparse.c;h=61d8a24386ff76ced149d5a38b68d5ae18255ba9;hb=b7a8f5313a83dea33ce60551a4fb987b415c2cc6;hp=37c4c0aa8b7697bffe1daae7518463a27112d6f7;hpb=9f10bc102adce15a820027777a03e49a7b7623da;p=sbcl.git diff --git a/src/runtime/parse.c b/src/runtime/parse.c index 37c4c0a..61d8a24 100644 --- a/src/runtime/parse.c +++ b/src/runtime/parse.c @@ -29,6 +29,12 @@ #include "monitor.h" #include "arch.h" #include "search.h" +#include "thread.h" + +#include "genesis/simple-fun.h" +#include "genesis/fdefn.h" +#include "genesis/symbol.h" +#include "genesis/static-symbols.h" static void skip_ws(char **ptr) { @@ -243,7 +249,7 @@ static boolean lookup_symbol(char *name, lispobj *result) /* Search static space. */ headerptr = (lispobj *)STATIC_SPACE_START; count = - (lispobj *)SymbolValue(STATIC_SPACE_FREE_POINTER) - + (lispobj *)SymbolValue(STATIC_SPACE_FREE_POINTER,0) - (lispobj *)STATIC_SPACE_START; if (search_for_symbol(name, &headerptr, &count)) { *result = make_lispobj(headerptr,OTHER_POINTER_LOWTAG); @@ -258,7 +264,7 @@ static boolean lookup_symbol(char *name, lispobj *result) (lispobj *)DYNAMIC_SPACE_START; #else count = - (lispobj *)SymbolValue(ALLOCATION_POINTER) - + (lispobj *)SymbolValue(ALLOCATION_POINTER,0) - (lispobj *)DYNAMIC_SPACE_START; #endif if (search_for_symbol(name, &headerptr, &count)) { @@ -302,6 +308,7 @@ parse_regnum(char *s) lispobj parse_lispobj(ptr) char **ptr; { + struct thread *thread=arch_os_get_current_thread(); char *token = parse_token(ptr); long pointer; lispobj result; @@ -315,14 +322,14 @@ char **ptr; int regnum; os_context_t *context; - free = SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX)>>2; + free = SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread)>>2; if (free == 0) { printf("Variable ``%s'' is not valid -- there is no current interrupt context.\n", token); throw_to_monitor(); } - context = lisp_interrupt_contexts[free - 1]; + context = thread->interrupt_contexts[free - 1]; regnum = parse_regnum(token); if (regnum < 0) {