PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/vm/os-linux-ppc.hpp

http://github.com/abeaumont/factor
C++ Header | 10 lines | 7 code | 3 blank | 0 comment | 0 complexity | 77d3081a2af92773c9c44da8e39d46e6 MD5 | raw file
 1#include <ucontext.h>
 2
 3namespace factor
 4{
 5
 6#define FRAME_RETURN_ADDRESS(frame,vm) *((void **)(vm->frame_successor(frame) + 1) + 1)
 7#define UAP_STACK_POINTER(ucontext) ((ucontext_t *)ucontext)->uc_mcontext.uc_regs->gregs[PT_R1]
 8#define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.uc_regs->gregs[PT_NIP])
 9
10}