make asn1 work again
[factor/jcg.git] / vm / os-linux-x86.64.h
blob911c2f1749340e008ef448ab38581a60f79e2d96
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[15];
9 #define UAP_PROGRAM_COUNTER(ucontext) \
10 (((ucontext_t *)(ucontext))->uc_mcontext.gregs[16])