Lines Matching refs:ucontext
1862 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1864 u8 *aux = reinterpret_cast<u8 *>(ucontext->uc_mcontext.__reserved); in Aarch64GetESR()
1878 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1886 Context *ucontext = (Context *)context; in GetWriteFlag() local
1890 uptr err = ucontext->uc_mcontext.mc_err; in GetWriteFlag()
1892 uptr err = ucontext->uc_mcontext.__gregs[_REG_ERR]; in GetWriteFlag()
1895 uptr err = ucontext->uc_mcontext.gregs[Err]; in GetWriteFlag()
1897 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
1905 exception_source = (uint32_t *)ucontext->uc_mcontext.pc; in GetWriteFlag()
1951 uptr fsr = ucontext->uc_mcontext.error_code; in GetWriteFlag()
1956 if (!Aarch64GetESR(ucontext, &esr)) return Unknown; in GetWriteFlag()
1962 uptr pc = ucontext->uc_mcontext.gregs[REG_PC]; in GetWriteFlag()
1976 unsigned long pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetWriteFlag()
1978 unsigned long pc = ucontext->uc_mcontext.__gregs[REG_PC]; in GetWriteFlag()
2078 (void)ucontext; in GetWriteFlag()
2096 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() local
2097 *pc = _UC_MACHINE_PC(ucontext); in GetPcSpBp()
2098 *bp = _UC_MACHINE_FP(ucontext); in GetPcSpBp()
2099 *sp = _UC_MACHINE_SP(ucontext); in GetPcSpBp()
2101 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2102 *pc = ucontext->uc_mcontext.arm_pc; in GetPcSpBp()
2103 *bp = ucontext->uc_mcontext.arm_fp; in GetPcSpBp()
2104 *sp = ucontext->uc_mcontext.arm_sp; in GetPcSpBp()
2107 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2108 *pc = ucontext->uc_mcontext.mc_gpregs.gp_elr; in GetPcSpBp()
2109 *bp = ucontext->uc_mcontext.mc_gpregs.gp_x[29]; in GetPcSpBp()
2110 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp()
2112 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2113 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2114 *bp = ucontext->uc_mcontext.regs[29]; in GetPcSpBp()
2115 *sp = ucontext->uc_mcontext.sp; in GetPcSpBp()
2118 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2119 *pc = ucontext->uc_mcontext.sc_iaoq[0]; in GetPcSpBp()
2121 *bp = ucontext->uc_mcontext.sc_gr[3]; in GetPcSpBp()
2122 *sp = ucontext->uc_mcontext.sc_gr[30]; in GetPcSpBp()
2125 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2126 *pc = ucontext->uc_mcontext.mc_rip; in GetPcSpBp()
2127 *bp = ucontext->uc_mcontext.mc_rbp; in GetPcSpBp()
2128 *sp = ucontext->uc_mcontext.mc_rsp; in GetPcSpBp()
2130 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2131 *pc = ucontext->uc_mcontext.gregs[REG_RIP]; in GetPcSpBp()
2132 *bp = ucontext->uc_mcontext.gregs[REG_RBP]; in GetPcSpBp()
2133 *sp = ucontext->uc_mcontext.gregs[REG_RSP]; in GetPcSpBp()
2137 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2138 *pc = ucontext->uc_mcontext.mc_eip; in GetPcSpBp()
2139 *bp = ucontext->uc_mcontext.mc_ebp; in GetPcSpBp()
2140 *sp = ucontext->uc_mcontext.mc_esp; in GetPcSpBp()
2142 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2156 *pc = ucontext->uc_mcontext.gregs[REG_EIP]; in GetPcSpBp()
2157 *bp = ucontext->uc_mcontext.gregs[REG_EBP]; in GetPcSpBp()
2158 *sp = ucontext->uc_mcontext.gregs[REG_UESP]; in GetPcSpBp()
2162 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2163 *pc = ucontext->uc_mcontext.mc_srr0; in GetPcSpBp()
2164 *sp = ucontext->uc_mcontext.mc_frame[1]; in GetPcSpBp()
2165 *bp = ucontext->uc_mcontext.mc_frame[31]; in GetPcSpBp()
2167 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2168 *pc = ucontext->uc_mcontext.regs->nip; in GetPcSpBp()
2169 *sp = ucontext->uc_mcontext.regs->gpr[PT_R1]; in GetPcSpBp()
2172 *bp = ucontext->uc_mcontext.regs->gpr[PT_R31]; in GetPcSpBp()
2181 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2182 *pc = ucontext->uc_mcontext.gregs[REG_PC]; in GetPcSpBp()
2183 *sp = ucontext->uc_mcontext.gregs[REG_O6] + STACK_BIAS; in GetPcSpBp()
2197 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2198 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2199 *bp = ucontext->uc_mcontext.gregs[30]; in GetPcSpBp()
2200 *sp = ucontext->uc_mcontext.gregs[29]; in GetPcSpBp()
2202 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2204 *pc = ucontext->uc_mcontext.psw.addr; in GetPcSpBp()
2206 *pc = ucontext->uc_mcontext.psw.addr & 0x7fffffff; in GetPcSpBp()
2208 *bp = ucontext->uc_mcontext.gregs[11]; in GetPcSpBp()
2209 *sp = ucontext->uc_mcontext.gregs[15]; in GetPcSpBp()
2211 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
2213 *pc = ucontext->uc_mcontext.mc_gpregs.gp_sepc; in GetPcSpBp()
2214 *bp = ucontext->uc_mcontext.mc_gpregs.gp_s[0]; in GetPcSpBp()
2215 *sp = ucontext->uc_mcontext.mc_gpregs.gp_sp; in GetPcSpBp()
2217 *pc = ucontext->uc_mcontext.__gregs[REG_PC]; in GetPcSpBp()
2218 *bp = ucontext->uc_mcontext.__gregs[REG_S0]; in GetPcSpBp()
2219 *sp = ucontext->uc_mcontext.__gregs[REG_SP]; in GetPcSpBp()
2222 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2223 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2224 *bp = ucontext->uc_mcontext.r30; in GetPcSpBp()
2225 *sp = ucontext->uc_mcontext.r29; in GetPcSpBp()
2227 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp()
2228 *pc = ucontext->uc_mcontext.__pc; in GetPcSpBp()
2229 *bp = ucontext->uc_mcontext.__gregs[22]; in GetPcSpBp()
2230 *sp = ucontext->uc_mcontext.__gregs[3]; in GetPcSpBp()