]> gitweb.factorcode.org Git - factor.git/blob - vm/os-linux-x86.32.hpp
VM: use better abstractions for tagged pointers, eliminate get()/set() stuff, clean...
[factor.git] / vm / os-linux-x86.32.hpp
1 #include <ucontext.h>
2
3 inline static void *ucontext_stack_pointer(void *uap)
4 {
5         ucontext_t *ucontext = (ucontext_t *)uap;
6         return (void *)ucontext->uc_mcontext.gregs[7];
7 }
8
9 #define UAP_PROGRAM_COUNTER(ucontext) \
10         (((ucontext_t *)(ucontext))->uc_mcontext.gregs[14])