Lines Matching refs:ucontext
1266 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1268 u8 *aux = ucontext->uc_mcontext.__reserved; in Aarch64GetESR()
1283 ucontext_t *ucontext = (ucontext_t *)context; in GetWriteFlag() local
1287 uptr err = ucontext->uc_mcontext.mc_err; in GetWriteFlag()
1289 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
1294 uptr fsr = ucontext->uc_mcontext.error_code; in GetWriteFlag()
1303 if (!Aarch64GetESR(ucontext, &esr)) return UNKNOWN; in GetWriteFlag()
1306 (void)ucontext; in GetWriteFlag()
1313 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() local
1314 *pc = ucontext->uc_mcontext.arm_pc; in GetPcSpBp()
1315 *bp = ucontext->uc_mcontext.arm_fp; in GetPcSpBp()
1316 *sp = ucontext->uc_mcontext.arm_sp; in GetPcSpBp()
1318 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1319 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
1320 *bp = ucontext->uc_mcontext.regs[29]; in GetPcSpBp()
1321 *sp = ucontext->uc_mcontext.sp; in GetPcSpBp()
1323 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1324 *pc = ucontext->uc_mcontext.sc_iaoq[0]; in GetPcSpBp()
1326 *bp = ucontext->uc_mcontext.sc_gr[3]; in GetPcSpBp()
1327 *sp = ucontext->uc_mcontext.sc_gr[30]; in GetPcSpBp()
1330 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1331 *pc = ucontext->uc_mcontext.mc_rip; in GetPcSpBp()
1332 *bp = ucontext->uc_mcontext.mc_rbp; in GetPcSpBp()
1333 *sp = ucontext->uc_mcontext.mc_rsp; in GetPcSpBp()
1335 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1336 *pc = ucontext->uc_mcontext.gregs[REG_RIP]; in GetPcSpBp()
1337 *bp = ucontext->uc_mcontext.gregs[REG_RBP]; in GetPcSpBp()
1338 *sp = ucontext->uc_mcontext.gregs[REG_RSP]; in GetPcSpBp()
1342 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1343 *pc = ucontext->uc_mcontext.mc_eip; in GetPcSpBp()
1344 *bp = ucontext->uc_mcontext.mc_ebp; in GetPcSpBp()
1345 *sp = ucontext->uc_mcontext.mc_esp; in GetPcSpBp()
1347 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1348 *pc = ucontext->uc_mcontext.gregs[REG_EIP]; in GetPcSpBp()
1349 *bp = ucontext->uc_mcontext.gregs[REG_EBP]; in GetPcSpBp()
1350 *sp = ucontext->uc_mcontext.gregs[REG_ESP]; in GetPcSpBp()
1353 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1354 *pc = ucontext->uc_mcontext.regs->nip; in GetPcSpBp()
1355 *sp = ucontext->uc_mcontext.regs->gpr[PT_R1]; in GetPcSpBp()
1358 *bp = ucontext->uc_mcontext.regs->gpr[PT_R31]; in GetPcSpBp()
1360 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1363 *pc = ucontext->uc_mcontext.mc_gregs[MC_PC]; in GetPcSpBp()
1364 *sp = ucontext->uc_mcontext.mc_gregs[MC_O6]; in GetPcSpBp()
1368 *pc = ucontext->uc_mcontext.gregs[REG_PC]; in GetPcSpBp()
1369 *sp = ucontext->uc_mcontext.gregs[REG_O6]; in GetPcSpBp()
1374 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1375 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
1376 *bp = ucontext->uc_mcontext.gregs[30]; in GetPcSpBp()
1377 *sp = ucontext->uc_mcontext.gregs[29]; in GetPcSpBp()
1379 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp()
1381 *pc = ucontext->uc_mcontext.psw.addr; in GetPcSpBp()
1383 *pc = ucontext->uc_mcontext.psw.addr & 0x7fffffff; in GetPcSpBp()
1385 *bp = ucontext->uc_mcontext.gregs[11]; in GetPcSpBp()
1386 *sp = ucontext->uc_mcontext.gregs[15]; in GetPcSpBp()