Home
last modified time | relevance | path

Searched refs:gregs (Results 1 – 25 of 58) sorted by relevance

123

/external/libunwind/src/ppc32/
Ducontext_i.h49 #define UC_MCONTEXT_GREGS_R0 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[0] - (void *)&dmy_ctxt)
50 #define UC_MCONTEXT_GREGS_R1 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[1] - (void *)&dmy_ctxt)
51 #define UC_MCONTEXT_GREGS_R2 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[2] - (void *)&dmy_ctxt)
52 #define UC_MCONTEXT_GREGS_R3 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[3] - (void *)&dmy_ctxt)
53 #define UC_MCONTEXT_GREGS_R4 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[4] - (void *)&dmy_ctxt)
54 #define UC_MCONTEXT_GREGS_R5 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[5] - (void *)&dmy_ctxt)
55 #define UC_MCONTEXT_GREGS_R6 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[6] - (void *)&dmy_ctxt)
56 #define UC_MCONTEXT_GREGS_R7 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[7] - (void *)&dmy_ctxt)
57 #define UC_MCONTEXT_GREGS_R8 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[8] - (void *)&dmy_ctxt)
58 #define UC_MCONTEXT_GREGS_R9 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[9] - (void *)&dmy_ctxt)
[all …]
/external/libunwind/src/sh/
DGresume.c44 regs[0] = uc->uc_mcontext.gregs[8]; in sh_local_resume()
45 regs[1] = uc->uc_mcontext.gregs[9]; in sh_local_resume()
46 regs[2] = uc->uc_mcontext.gregs[10]; in sh_local_resume()
47 regs[3] = uc->uc_mcontext.gregs[11]; in sh_local_resume()
48 regs[4] = uc->uc_mcontext.gregs[12]; in sh_local_resume()
49 regs[5] = uc->uc_mcontext.gregs[13]; in sh_local_resume()
50 regs[6] = uc->uc_mcontext.gregs[14]; in sh_local_resume()
51 regs[7] = uc->uc_mcontext.gregs[15]; in sh_local_resume()
81 sc->sc_regs[0] = uc->uc_mcontext.gregs[0]; in sh_local_resume()
82 sc->sc_regs[1] = uc->uc_mcontext.gregs[1]; in sh_local_resume()
[all …]
/external/libchrome/base/debug/
Dstack_trace_posix.cc344 { " gs: ", context->uc_mcontext.gregs[REG_GS] }, in StackDumpSignalHandler()
345 { " fs: ", context->uc_mcontext.gregs[REG_FS] }, in StackDumpSignalHandler()
346 { " es: ", context->uc_mcontext.gregs[REG_ES] }, in StackDumpSignalHandler()
347 { " ds: ", context->uc_mcontext.gregs[REG_DS] }, in StackDumpSignalHandler()
348 { " edi: ", context->uc_mcontext.gregs[REG_EDI] }, in StackDumpSignalHandler()
349 { " esi: ", context->uc_mcontext.gregs[REG_ESI] }, in StackDumpSignalHandler()
350 { " ebp: ", context->uc_mcontext.gregs[REG_EBP] }, in StackDumpSignalHandler()
351 { " esp: ", context->uc_mcontext.gregs[REG_ESP] }, in StackDumpSignalHandler()
352 { " ebx: ", context->uc_mcontext.gregs[REG_EBX] }, in StackDumpSignalHandler()
353 { " edx: ", context->uc_mcontext.gregs[REG_EDX] }, in StackDumpSignalHandler()
[all …]
/external/libunwind/src/x86_64/
DGos-linux.c113 case UNW_X86_64_R8: addr = &uc->uc_mcontext.gregs[REG_R8]; break; in x86_64_r_uc_addr()
114 case UNW_X86_64_R9: addr = &uc->uc_mcontext.gregs[REG_R9]; break; in x86_64_r_uc_addr()
115 case UNW_X86_64_R10: addr = &uc->uc_mcontext.gregs[REG_R10]; break; in x86_64_r_uc_addr()
116 case UNW_X86_64_R11: addr = &uc->uc_mcontext.gregs[REG_R11]; break; in x86_64_r_uc_addr()
117 case UNW_X86_64_R12: addr = &uc->uc_mcontext.gregs[REG_R12]; break; in x86_64_r_uc_addr()
118 case UNW_X86_64_R13: addr = &uc->uc_mcontext.gregs[REG_R13]; break; in x86_64_r_uc_addr()
119 case UNW_X86_64_R14: addr = &uc->uc_mcontext.gregs[REG_R14]; break; in x86_64_r_uc_addr()
120 case UNW_X86_64_R15: addr = &uc->uc_mcontext.gregs[REG_R15]; break; in x86_64_r_uc_addr()
121 case UNW_X86_64_RDI: addr = &uc->uc_mcontext.gregs[REG_RDI]; break; in x86_64_r_uc_addr()
122 case UNW_X86_64_RSI: addr = &uc->uc_mcontext.gregs[REG_RSI]; break; in x86_64_r_uc_addr()
[all …]
/external/libunwind/src/x86/
DGos-linux.c262 case UNW_X86_GS: addr = &uc->uc_mcontext.gregs[REG_GS]; break; in x86_r_uc_addr()
263 case UNW_X86_FS: addr = &uc->uc_mcontext.gregs[REG_FS]; break; in x86_r_uc_addr()
264 case UNW_X86_ES: addr = &uc->uc_mcontext.gregs[REG_ES]; break; in x86_r_uc_addr()
265 case UNW_X86_DS: addr = &uc->uc_mcontext.gregs[REG_DS]; break; in x86_r_uc_addr()
266 case UNW_X86_EAX: addr = &uc->uc_mcontext.gregs[REG_EAX]; break; in x86_r_uc_addr()
267 case UNW_X86_EBX: addr = &uc->uc_mcontext.gregs[REG_EBX]; break; in x86_r_uc_addr()
268 case UNW_X86_ECX: addr = &uc->uc_mcontext.gregs[REG_ECX]; break; in x86_r_uc_addr()
269 case UNW_X86_EDX: addr = &uc->uc_mcontext.gregs[REG_EDX]; break; in x86_r_uc_addr()
270 case UNW_X86_ESI: addr = &uc->uc_mcontext.gregs[REG_ESI]; break; in x86_r_uc_addr()
271 case UNW_X86_EDI: addr = &uc->uc_mcontext.gregs[REG_EDI]; break; in x86_r_uc_addr()
[all …]
/external/linux-kselftest/tools/testing/selftests/x86/
Dsysret_rip.c81 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_sigreturn_test()
83 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_sigreturn_test()
88 memcpy(&ctx->uc_mcontext.gregs, &initial_regs, sizeof(gregset_t)); in sigsegv_for_sigreturn_test()
97 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1()
100 ctx->uc_mcontext.gregs[REG_RIP] = rip; in sigusr1()
101 ctx->uc_mcontext.gregs[REG_RCX] = rip; in sigusr1()
104 assert(ctx->uc_mcontext.gregs[REG_EFL] == in sigusr1()
105 ctx->uc_mcontext.gregs[REG_R11]); in sigusr1()
125 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_fallthrough()
127 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_fallthrough()
Dsigreturn.c317 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr()
323 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()
333 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr()
338 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr()
452 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1()
457 ctx->uc_mcontext.gregs[REG_IP] = in sigusr1()
459 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; in sigusr1()
460 ctx->uc_mcontext.gregs[REG_CX] = 0; in sigusr1()
462 memcpy(&requested_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1()
479 sig_err = ctx->uc_mcontext.gregs[REG_ERR]; in sigtrap()
[all …]
Dmov_ss_trap.c122 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in sigtrap()
123 !!(ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_RF)); in sigtrap()
131 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_and_return()
139 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_and_longjmp()
Dunwind_vdso.c139 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap()
145 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; in sigtrap()
155 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; in sigtrap()
Dentry_from_vm86.c59 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || in sighandler()
60 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { in sighandler()
74 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], in sighandler()
75 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]); in sighandler()
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dresumption.c155 ctx->uc_mcontext.gregs[REG_ARG0], in TRAP_action()
156 ctx->uc_mcontext.gregs[REG_ARG1], in TRAP_action()
157 ctx->uc_mcontext.gregs[REG_ARG2], in TRAP_action()
158 ctx->uc_mcontext.gregs[REG_ARG3], in TRAP_action()
159 ctx->uc_mcontext.gregs[REG_ARG4], in TRAP_action()
160 ctx->uc_mcontext.gregs[REG_ARG5]); in TRAP_action()
163 if (ctx->uc_mcontext.gregs[REG_IP] >= 0xffffffffff600000ULL && in TRAP_action()
164 ctx->uc_mcontext.gregs[REG_IP] < 0xffffffffff601000ULL) in TRAP_action()
168 ctx->uc_mcontext.gregs[REG_SP] -= sizeof(unsigned long); in TRAP_action()
169 *((unsigned long *)ctx->uc_mcontext.gregs[REG_SP]) = in TRAP_action()
[all …]
Dsigsegv.c136 ctx->uc_mcontext.gregs[REG_ARG0], in TRAP_action()
137 ctx->uc_mcontext.gregs[REG_ARG1], in TRAP_action()
138 ctx->uc_mcontext.gregs[REG_ARG2], in TRAP_action()
139 ctx->uc_mcontext.gregs[REG_ARG3], in TRAP_action()
140 ctx->uc_mcontext.gregs[REG_ARG4], in TRAP_action()
141 ctx->uc_mcontext.gregs[REG_ARG5], in TRAP_action()
142 ALIGN(ctx->uc_mcontext.gregs[REG_IP], 4096)); in TRAP_action()
147 local_mprotect((void *)ctx->uc_mcontext.gregs[REG_IP], sysconf(_SC_PAGE_SIZE)); in TRAP_action()
/external/elfutils/backends/
Driscv_initreg.c53 elf_gregset_t gregs; in riscv_set_initial_registers_tid()
55 iovec.iov_base = &gregs; in riscv_set_initial_registers_tid()
56 iovec.iov_len = sizeof (gregs); in riscv_set_initial_registers_tid()
66 if (! setfunc (1, 32, (Dwarf_Word *) &gregs[1], arg)) in riscv_set_initial_registers_tid()
70 if (! setfunc (-1, 1, (Dwarf_Word *) &gregs[0], arg)) in riscv_set_initial_registers_tid()
Daarch64_initreg.c59 struct user_regs_struct gregs; in aarch64_set_initial_registers_tid()
61 iovec.iov_base = &gregs; in aarch64_set_initial_registers_tid()
62 iovec.iov_len = sizeof (gregs); in aarch64_set_initial_registers_tid()
67 if (! setfunc (0, 32, (Dwarf_Word *) &gregs.regs[0], arg)) in aarch64_set_initial_registers_tid()
71 if (! setfunc (-1, 1, (Dwarf_Word *) &gregs.pc, arg)) in aarch64_set_initial_registers_tid()
Darm_initreg.c76 struct user_regs_struct gregs; in arm_set_initial_registers_tid()
78 iovec.iov_base = &gregs; in arm_set_initial_registers_tid()
79 iovec.iov_len = sizeof (gregs); in arm_set_initial_registers_tid()
85 uint32_t *u32_ptr = (uint32_t *) &gregs.regs[0]; in arm_set_initial_registers_tid()
/external/v8/src/libsampler/
Dsampler.cc113 uint64_t gregs[32]; member
141 uint32_t gregs[19]; member
160 uint64_t gregs[23]; member
464 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_EIP]); in FillRegisterState()
465 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_ESP]); in FillRegisterState()
466 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_EBP]); in FillRegisterState()
468 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_RIP]); in FillRegisterState()
469 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_RSP]); in FillRegisterState()
470 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_RBP]); in FillRegisterState()
475 state->pc = reinterpret_cast<void*>(mcontext.gregs[R15]); in FillRegisterState()
[all …]
/external/google-breakpad/src/client/solaris/handler/
Dminidump_generator.cc103 const prgregset_t *gregs = &(lsp->pr_reg); in IsLwpCrashedCallback() local
105 uintptr_t last_ebp = (*gregs)[R_FP]; in IsLwpCrashedCallback()
107 uintptr_t last_ebp = (*gregs)[EBP]; in IsLwpCrashedCallback()
156 int* regs = sig_ctx->uc_mcontext.gregs; in WriteContext()
171 context->g_r[i] = (uintptr_t)(sig_ctx->uc_mcontext.gregs[i + 3]); in WriteContext()
242 writer_args->sig_ctx->uc_mcontext.gregs[REG_O6], in WriteCrashedLwpStream()
256 writer_args->sig_ctx->uc_mcontext.gregs[UESP], in WriteCrashedLwpStream()
267 (int *)&writer_args->sig_ctx->uc_mcontext.gregs, in WriteCrashedLwpStream()
276 const prgregset_t *gregs = &(lsp->pr_reg); in WriteLwpStream() local
280 (*gregs)[R_SP], in WriteLwpStream()
[all …]
/external/google-breakpad/src/common/android/
Dbreakpad_getcontext_unittest.cc71 offsetof(ucontext_t,uc_mcontext.gregs)); in TEST()
74 offsetof(ucontext_t,uc_mcontext.gregs[REG_##x])) in TEST()
102 offsetof(ucontext_t,uc_mcontext.gregs)); in TEST()
116 offsetof(ucontext_t,uc_mcontext.gregs), in TEST()
120 offsetof(ucontext_t,uc_mcontext.gregs[REG_##x]), reg_##x) in TEST()
179 offsetof(ucontext_t,uc_mcontext.gregs)); in TEST()
/external/google-breakpad/src/client/linux/dump_writer_common/
Ducontext_reader.cc44 return uc->uc_mcontext.gregs[REG_ESP]; in GetStackPointer()
48 return uc->uc_mcontext.gregs[REG_EIP]; in GetInstructionPointer()
53 const greg_t* regs = uc->uc_mcontext.gregs; in FillCPUContext()
92 return uc->uc_mcontext.gregs[REG_RSP];
96 return uc->uc_mcontext.gregs[REG_RIP];
101 const greg_t* regs = uc->uc_mcontext.gregs;
214 return uc->uc_mcontext.gregs[MD_CONTEXT_MIPS_REG_SP];
225 out->iregs[i] = uc->uc_mcontext.gregs[i];
/external/u-boot/drivers/mtd/nand/
Dfsl_ifc_nand.c764 ifc_ctrl->regs.gregs = IFC_FCM_BASE_ADDR; in fsl_ifc_ctrl_init()
766 ver = ifc_in32(&ifc_ctrl->regs.gregs->ifc_rev); in fsl_ifc_ctrl_init()
820 csor = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor); in fsl_ifc_sram_init()
821 csor_ext = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext); in fsl_ifc_sram_init()
825 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor_8k); in fsl_ifc_sram_init()
826 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, 0x0000400); in fsl_ifc_sram_init()
866 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor); in fsl_ifc_sram_init()
867 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, csor_ext); in fsl_ifc_sram_init()
878 struct fsl_ifc_fcm *gregs = NULL; in fsl_ifc_chip_init() local
894 gregs = ifc_ctrl->regs.gregs; in fsl_ifc_chip_init()
[all …]
/external/u-boot/arch/mips/mach-ath79/
Dreset.c79 void __iomem *gregs = map_physmem(AR933X_GMAC_BASE, AR933X_GMAC_SIZE, in eth_init_ar933x() local
101 clrsetbits_be32(gregs + AR933X_GMAC_REG_ETH_CFG, in eth_init_ar933x()
114 void __iomem *gregs = map_physmem(AR934X_GMAC_BASE, AR934X_GMAC_SIZE, in eth_init_ar934x() local
134 writel(AR934X_ETH_CFG_RGMII_GMAC0, gregs + AR934X_GMAC_REG_ETH_CFG); in eth_init_ar934x()
/external/ltp/testcases/cve/
Dcve-2015-3290.c171 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr()
178 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()
190 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr()
196 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler.cc640 if (!context.context.uc_mcontext.gregs[REG_UESP]) { in WriteMinidump()
647 context.context.uc_mcontext.gregs[REG_UESP] = in WriteMinidump()
648 context.context.uc_mcontext.gregs[REG_EBP] - 16; in WriteMinidump()
651 context.context.uc_mcontext.gregs[REG_ESP] = in WriteMinidump()
652 context.context.uc_mcontext.gregs[REG_UESP]; in WriteMinidump()
668 reinterpret_cast<void*>(context.context.uc_mcontext.gregs[REG_EIP]); in WriteMinidump()
671 reinterpret_cast<void*>(context.context.uc_mcontext.gregs[REG_RIP]); in WriteMinidump()
/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dcpu_init_early.c72 ifc_out32(&(ifc_regs.gregs->cspr_cs[0].cspr), CONFIG_SYS_CSPR0); in setup_ifc()
73 ifc_out32(&(ifc_regs.gregs->csor_cs[0].csor), CONFIG_SYS_CSOR0); in setup_ifc()
74 ifc_out32(&(ifc_regs.gregs->amask_cs[0].amask), CONFIG_SYS_AMASK0); in setup_ifc()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cc1289 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
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()
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()
1368 *pc = ucontext->uc_mcontext.gregs[REG_PC]; in GetPcSpBp()
1369 *sp = ucontext->uc_mcontext.gregs[REG_O6]; in GetPcSpBp()
1376 *bp = ucontext->uc_mcontext.gregs[30]; in GetPcSpBp()
[all …]

123