Go to the documentation of this file. 51 #include <sys/ucontext.h> 53 #define GET_MCONTEXT(context) (&((ucontext_t *)context)->uc_mcontext) 62 #define REG_INST_PTR REG_RIP 63 #define REG_BASE_PTR REG_RBP 64 #define REG_STACK_PTR REG_RSP 68 #define REG_INST_PTR REG_EIP 69 #define REG_BASE_PTR REG_EBP 70 #define REG_STACK_PTR REG_ESP 73 #define REG_INST_PTR REG_IP 74 #define REG_BASE_PTR REG_BP 75 #define REG_STACK_PTR REG_SP 81 #define MCONTEXT_REG(mctxt, reg) ((mctxt)->gregs[reg]) 83 #define LV_MCONTEXT_PC(mctxt) MCONTEXT_REG(mctxt, REG_INST_PTR) 84 #define LV_MCONTEXT_BP(mctxt) MCONTEXT_REG(mctxt, REG_BASE_PTR) 85 #define LV_MCONTEXT_SP(mctxt) MCONTEXT_REG(mctxt, REG_STACK_PTR) 87 #define MCONTEXT_PC(mctxt) ((void *) MCONTEXT_REG(mctxt, REG_INST_PTR)) 88 #define MCONTEXT_BP(mctxt) ((void **) MCONTEXT_REG(mctxt, REG_BASE_PTR)) 89 #define MCONTEXT_SP(mctxt) ((void **) MCONTEXT_REG(mctxt, REG_STACK_PTR)) 91 #endif // __MCONTEXT_H