Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / vm / os-solaris-x86.32.h
blob1f4ec74e1751dde759b0814fdacad5cbb87e737f
1 #include <ucontext.h>
3 INLINE void *ucontext_stack_pointer(void *uap)
5 ucontext_t *ucontext = (ucontext_t *)uap;
6 return (void *)ucontext->uc_mcontext.gregs[ESP];
9 #define UAP_PROGRAM_COUNTER(ucontext) \
10 (((ucontext_t *)(ucontext))->uc_mcontext.gregs[EIP])