Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / vm / os-linux-ppc.h
blobeb28af53e47e4c024217f51b6f489f5fb2a15253
1 #include <ucontext.h>
3 #define FRAME_RETURN_ADDRESS(frame) *((XT *)(frame_successor(frame) + 1) + 1)
5 INLINE void *ucontext_stack_pointer(void *uap)
7 ucontext_t *ucontext = (ucontext_t *)uap;
8 return (void *)ucontext->uc_mcontext.uc_regs->gregs[PT_R1];
11 #define UAP_PROGRAM_COUNTER(ucontext) \
12 (((ucontext_t *)(ucontext))->uc_mcontext.uc_regs->gregs[PT_NIP])