X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-linux-os.c;h=d943e6fb86deffaefe4b8c18d273aa04898982c4;hb=a0a413499415738d23cc40baa44e9c404af54a94;hp=9b461076466ea5a8eb018f3c608b3668eded6061;hpb=3537df0868f37c98475405b6dea497d053ac06f7;p=sbcl.git diff --git a/src/runtime/x86-linux-os.c b/src/runtime/x86-linux-os.c index 9b46107..d943e6f 100644 --- a/src/runtime/x86-linux-os.c +++ b/src/runtime/x86-linux-os.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "./signal.h" #include "os.h" @@ -127,6 +128,11 @@ struct thread *arch_os_get_current_thread() { return all_threads; #endif } +struct thread *debug_get_fs() { + register u32 fs; + __asm__("movl %%fs,%0" : "=r" (fs) : ); + return fs; +} /* free any arch/os-specific resources used by thread, which is now * defunct. Not called on live threads