Lines Matching defs:ucontext

70 #include <ucontext.h>
1904 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
1906 u8 *aux = reinterpret_cast<u8 *>(ucontext->uc_mcontext.__reserved);
1919 // FreeBSD doesn't provide ESR in the ucontext.
1920 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
1928 Context *ucontext = (Context *)context;
1932 uptr err = ucontext->uc_mcontext.mc_err;
1934 uptr err = ucontext->uc_mcontext.__gregs[_REG_ERR];
1937 uptr err = ucontext->uc_mcontext.gregs[Err];
1939 uptr err = ucontext->uc_mcontext.gregs[REG_ERR];
1947 exception_source = (uint32_t *)ucontext->uc_mcontext.pc;
1993 uptr fsr = ucontext->uc_mcontext.error_code;
1998 if (!Aarch64GetESR(ucontext, &esr)) return Unknown;
2001 u32 flags = ucontext->uc_mcontext.__flags;
2011 uptr pc = ucontext->uc_mcontext.gregs[REG_PC];
2025 unsigned long pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc;
2027 unsigned long pc = ucontext->uc_mcontext.__gregs[REG_PC];
2127 (void)ucontext;
2145 ucontext_t *ucontext = (ucontext_t *)context;
2146 *pc = _UC_MACHINE_PC(ucontext);
2147 *bp = _UC_MACHINE_FP(ucontext);
2148 *sp = _UC_MACHINE_SP(ucontext);
2150 ucontext_t *ucontext = (ucontext_t*)context;
2151 *pc = ucontext->uc_mcontext.arm_pc;
2152 *bp = ucontext->uc_mcontext.arm_fp;
2153 *sp = ucontext->uc_mcontext.arm_sp;
2156 ucontext_t *ucontext = (ucontext_t*)context;
2157 *pc = ucontext->uc_mcontext.mc_gpregs.gp_elr;
2158 *bp = ucontext->uc_mcontext.mc_gpregs.gp_x[29];
2159 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp;
2161 ucontext_t *ucontext = (ucontext_t*)context;
2162 *pc = ucontext->uc_mcontext.pc;
2163 *bp = ucontext->uc_mcontext.regs[29];
2164 *sp = ucontext->uc_mcontext.sp;
2167 ucontext_t *ucontext = (ucontext_t*)context;
2168 *pc = ucontext->uc_mcontext.sc_iaoq[0];
2170 *bp = ucontext->uc_mcontext.sc_gr[3];
2171 *sp = ucontext->uc_mcontext.sc_gr[30];
2174 ucontext_t *ucontext = (ucontext_t*)context;
2175 *pc = ucontext->uc_mcontext.mc_rip;
2176 *bp = ucontext->uc_mcontext.mc_rbp;
2177 *sp = ucontext->uc_mcontext.mc_rsp;
2179 ucontext_t *ucontext = (ucontext_t*)context;
2180 *pc = ucontext->uc_mcontext.gregs[REG_RIP];
2181 *bp = ucontext->uc_mcontext.gregs[REG_RBP];
2182 *sp = ucontext->uc_mcontext.gregs[REG_RSP];
2186 ucontext_t *ucontext = (ucontext_t*)context;
2187 *pc = ucontext->uc_mcontext.mc_eip;
2188 *bp = ucontext->uc_mcontext.mc_ebp;
2189 *sp = ucontext->uc_mcontext.mc_esp;
2191 ucontext_t *ucontext = (ucontext_t*)context;
2205 *pc = ucontext->uc_mcontext.gregs[REG_EIP];
2206 *bp = ucontext->uc_mcontext.gregs[REG_EBP];
2207 *sp = ucontext->uc_mcontext.gregs[REG_UESP];
2211 ucontext_t *ucontext = (ucontext_t *)context;
2212 *pc = ucontext->uc_mcontext.mc_srr0;
2213 *sp = ucontext->uc_mcontext.mc_frame[1];
2214 *bp = ucontext->uc_mcontext.mc_frame[31];
2216 ucontext_t *ucontext = (ucontext_t*)context;
2217 *pc = ucontext->uc_mcontext.regs->nip;
2218 *sp = ucontext->uc_mcontext.regs->gpr[PT_R1];
2221 *bp = ucontext->uc_mcontext.regs->gpr[PT_R31];
2230 ucontext_t *ucontext = (ucontext_t *)context;
2231 *pc = ucontext->uc_mcontext.gregs[REG_PC];
2232 *sp = ucontext->uc_mcontext.gregs[REG_O6] + STACK_BIAS;
2246 ucontext_t *ucontext = (ucontext_t*)context;
2247 *pc = ucontext->uc_mcontext.pc;
2248 *bp = ucontext->uc_mcontext.gregs[30];
2249 *sp = ucontext->uc_mcontext.gregs[29];
2251 ucontext_t *ucontext = (ucontext_t*)context;
2253 *pc = ucontext->uc_mcontext.psw.addr;
2255 *pc = ucontext->uc_mcontext.psw.addr & 0x7fffffff;
2257 *bp = ucontext->uc_mcontext.gregs[11];
2258 *sp = ucontext->uc_mcontext.gregs[15];
2260 ucontext_t *ucontext = (ucontext_t*)context;
2262 *pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc;
2263 *bp = ucontext->uc_mcontext.mc_gpregs.gp_s[0];
2264 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp;
2266 *pc = ucontext->uc_mcontext.__gregs[REG_PC];
2267 *bp = ucontext->uc_mcontext.__gregs[REG_S0];
2268 *sp = ucontext->uc_mcontext.__gregs[REG_SP];
2271 ucontext_t *ucontext = (ucontext_t *)context;
2272 *pc = ucontext->uc_mcontext.pc;
2273 *bp = ucontext->uc_mcontext.r30;
2274 *sp = ucontext->uc_mcontext.r29;
2276 ucontext_t *ucontext = (ucontext_t *)context;
2277 *pc = ucontext->uc_mcontext.__pc;
2278 *bp = ucontext->uc_mcontext.__gregs[22];
2279 *sp = ucontext->uc_mcontext.__gregs[3];