/external/libunwind/src/ppc32/ |
D | ucontext_i.h | 49 #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/ |
D | Gresume.c | 44 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/libunwind/src/x86_64/ |
D | Gos-linux.c | 113 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/libchrome/base/debug/ |
D | stack_trace_posix.cc | 344 { " 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/u-boot/arch/mips/mach-ath79/ |
D | reset.c | 118 void __iomem *gregs = map_physmem(AR933X_GMAC_BASE, AR933X_GMAC_SIZE, in eth_init_ar933x() local 140 clrsetbits_be32(gregs + AR933X_GMAC_REG_ETH_CFG, in eth_init_ar933x() 153 void __iomem *gregs = map_physmem(AR934X_GMAC_BASE, AR934X_GMAC_SIZE, in eth_init_ar934x() local 173 writel(AR934X_ETH_CFG_RGMII_GMAC0, gregs + AR934X_GMAC_REG_ETH_CFG); in eth_init_ar934x() 200 void __iomem *gregs = map_physmem(AR71XX_MII_BASE, AR71XX_MII_SIZE, in qca956x_sgmii_cal() local 210 reg = readl(gregs + QCA956X_GMAC_REG_SGMII_SERDES); in qca956x_sgmii_cal() 216 reg = (readl(gregs + QCA956X_GMAC_REG_SGMII_SERDES) & in qca956x_sgmii_cal() 219 writel(reg, gregs + QCA956X_GMAC_REG_SGMII_SERDES); in qca956x_sgmii_cal() 223 reg = readl(gregs + QCA956X_GMAC_REG_SGMII_SERDES); in qca956x_sgmii_cal() 242 writel((readl(gregs + QCA956X_GMAC_REG_SGMII_SERDES) & in qca956x_sgmii_cal() [all …]
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | sysret_rip.c | 73 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_sigreturn_test() 75 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_sigreturn_test() 80 memcpy(&ctx->uc_mcontext.gregs, &initial_regs, sizeof(gregset_t)); in sigsegv_for_sigreturn_test() 89 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1() 92 ctx->uc_mcontext.gregs[REG_RIP] = rip; in sigusr1() 93 ctx->uc_mcontext.gregs[REG_RCX] = rip; in sigusr1() 96 assert(ctx->uc_mcontext.gregs[REG_EFL] == in sigusr1() 97 ctx->uc_mcontext.gregs[REG_R11]); in sigusr1() 117 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_fallthrough() 119 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_fallthrough()
|
D | sigreturn.c | 309 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() 315 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr() 325 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr() 330 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr() 444 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1() 449 ctx->uc_mcontext.gregs[REG_IP] = in sigusr1() 451 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; in sigusr1() 452 ctx->uc_mcontext.gregs[REG_CX] = 0; in sigusr1() 463 ctx->uc_mcontext.gregs[REG_DS] = 0; in sigusr1() 464 ctx->uc_mcontext.gregs[REG_ES] = 0; in sigusr1() [all …]
|
D | single_step_syscall.c | 101 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap() 117 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in print_and_longjmp() 118 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_TF); in print_and_longjmp() 120 sig_eflags = (unsigned long)ctx->uc_mcontext.gregs[REG_EFL]; in print_and_longjmp()
|
D | mov_ss_trap.c | 122 (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()
|
D | syscall_arg_fault.c | 70 long ax = (long)ctx->uc_mcontext.gregs[REG_AX]; in sigsegv_or_sigbus() 94 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigtrap() 111 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigill()
|
D | unwind_vdso.c | 130 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap() 136 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; in sigtrap() 146 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; in sigtrap()
|
/external/libunwind/src/x86/ |
D | Gos-linux.c | 262 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/autotest/client/site_tests/security_SeccompSyscallFilters/src/ |
D | resumption.c | 155 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 …]
|
D | sigsegv.c | 136 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/ |
D | riscv_initreg.c | 53 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()
|
D | aarch64_initreg.c | 59 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()
|
D | arm_initreg.c | 76 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/ |
D | sampler.cc | 102 uint64_t gregs[32]; member 130 uint32_t gregs[19]; member 149 uint64_t gregs[23]; member 382 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_EIP]); in FillRegisterState() 383 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_ESP]); in FillRegisterState() 384 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_EBP]); in FillRegisterState() 386 state->pc = reinterpret_cast<void*>(mcontext.gregs[REG_RIP]); in FillRegisterState() 387 state->sp = reinterpret_cast<void*>(mcontext.gregs[REG_RSP]); in FillRegisterState() 388 state->fp = reinterpret_cast<void*>(mcontext.gregs[REG_RBP]); in FillRegisterState() 393 state->pc = reinterpret_cast<void*>(mcontext.gregs[R15]); in FillRegisterState() [all …]
|
/external/google-breakpad/src/client/solaris/handler/ |
D | minidump_generator.cc | 103 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/ |
D | breakpad_getcontext_unittest.cc | 71 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/ |
D | ucontext_reader.cc | 44 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/raw/ |
D | fsl_ifc_nand.c | 774 ifc_ctrl->regs.gregs = IFC_FCM_BASE_ADDR; in fsl_ifc_ctrl_init() 776 ver = ifc_in32(&ifc_ctrl->regs.gregs->ifc_rev); in fsl_ifc_ctrl_init() 830 csor = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor); in fsl_ifc_sram_init() 831 csor_ext = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext); in fsl_ifc_sram_init() 835 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor_8k); in fsl_ifc_sram_init() 836 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, 0x0000400); in fsl_ifc_sram_init() 876 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor); in fsl_ifc_sram_init() 877 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, csor_ext); in fsl_ifc_sram_init() 888 struct fsl_ifc_fcm *gregs = NULL; in fsl_ifc_chip_init() local 904 gregs = ifc_ctrl->regs.gregs; in fsl_ifc_chip_init() [all …]
|
/external/ltp/testcases/cve/ |
D | cve-2015-3290.c | 150 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() 157 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr() 169 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr() 175 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr()
|
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
D | cpu_init_early.c | 72 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/google-breakpad/src/client/linux/handler/ |
D | exception_handler.cc | 640 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()
|