/openbmc/linux/arch/nios2/kernel/ |
H A D | signal.c | 42 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local 52 err |= __get_user(regs->r1, &gregs[0]); in rt_restore_ucontext() 53 err |= __get_user(regs->r2, &gregs[1]); in rt_restore_ucontext() 54 err |= __get_user(regs->r3, &gregs[2]); in rt_restore_ucontext() 55 err |= __get_user(regs->r4, &gregs[3]); in rt_restore_ucontext() 56 err |= __get_user(regs->r5, &gregs[4]); in rt_restore_ucontext() 57 err |= __get_user(regs->r6, &gregs[5]); in rt_restore_ucontext() 58 err |= __get_user(regs->r7, &gregs[6]); in rt_restore_ucontext() 59 err |= __get_user(regs->r8, &gregs[7]); in rt_restore_ucontext() 60 err |= __get_user(regs->r9, &gregs[8]); in rt_restore_ucontext() [all …]
|
/openbmc/qemu/linux-user/sh4/ |
H A D | signal.c | 99 if (regs->gregs[15] >= -128u && regs->pc < regs->gregs[0]) { in unwind_gusa() 103 regs->pc = regs->gregs[0] + regs->gregs[15] - 2; in unwind_gusa() 106 regs->gregs[15] = regs->gregs[1]; in unwind_gusa() 107 } else if (regs->gregs[15] >= -128u && regs->pc == regs->gregs[0]) { in unwind_gusa() 111 regs->gregs[15] = regs->gregs[1]; in unwind_gusa() 124 COPY(gregs[0]); COPY(gregs[1]); in setup_sigcontext() 125 COPY(gregs[2]); COPY(gregs[3]); in setup_sigcontext() 126 COPY(gregs[4]); COPY(gregs[5]); in setup_sigcontext() 127 COPY(gregs[6]); COPY(gregs[7]); in setup_sigcontext() 128 COPY(gregs[8]); COPY(gregs[9]); in setup_sigcontext() [all …]
|
H A D | cpu_loop.c | 43 env->gregs[3], in cpu_loop() 44 env->gregs[4], in cpu_loop() 45 env->gregs[5], in cpu_loop() 46 env->gregs[6], in cpu_loop() 47 env->gregs[7], in cpu_loop() 48 env->gregs[0], in cpu_loop() 49 env->gregs[1], in cpu_loop() 54 env->gregs[0] = ret; in cpu_loop() 89 env->gregs[i] = regs->regs[i]; in target_cpu_copy_regs()
|
H A D | target_cpu.h | 26 env->gregs[15] = newsp; in cpu_clone_regs_child() 28 env->gregs[0] = 0; in cpu_clone_regs_child() 42 return state->gregs[15]; in get_sp_from_cpustate()
|
/openbmc/openbmc/poky/meta/recipes-support/libunwind/libunwind/ |
H A D | 0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch | 40 - addr = &uc->uc_mcontext.uc_regs->gregs[reg - UNW_PPC32_R0]; 41 + addr = &uc->GET_UC_REGS->gregs[reg - UNW_PPC32_R0]; 55 - addr = &uc->uc_mcontext.uc_regs->gregs[gregs_idx]; 56 + addr = &uc->GET_UC_REGS->gregs[gregs_idx]; 68 -#define UC_MCONTEXT_GREGS_R0 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[0] - (void *)&dmy_ctxt) 69 -#define UC_MCONTEXT_GREGS_R1 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[1] - (void *)&dmy_ctxt) 70 -#define UC_MCONTEXT_GREGS_R2 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[2] - (void *)&dmy_ctxt) 71 -#define UC_MCONTEXT_GREGS_R3 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[3] - (void *)&dmy_ctxt) 72 -#define UC_MCONTEXT_GREGS_R4 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[4] - (void *)&dmy_ctxt) 73 -#define UC_MCONTEXT_GREGS_R5 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[5] - (void *)&dmy_ctxt) [all …]
|
/openbmc/qemu/linux-user/m68k/ |
H A D | signal.c | 57 target_gregset_t gregs; member 185 target_greg_t *gregs = uc->tuc_mcontext.gregs; in target_rt_setup_ucontext() local 189 __put_user(env->dregs[0], &gregs[0]); in target_rt_setup_ucontext() 190 __put_user(env->dregs[1], &gregs[1]); in target_rt_setup_ucontext() 191 __put_user(env->dregs[2], &gregs[2]); in target_rt_setup_ucontext() 192 __put_user(env->dregs[3], &gregs[3]); in target_rt_setup_ucontext() 193 __put_user(env->dregs[4], &gregs[4]); in target_rt_setup_ucontext() 194 __put_user(env->dregs[5], &gregs[5]); in target_rt_setup_ucontext() 195 __put_user(env->dregs[6], &gregs[6]); in target_rt_setup_ucontext() 196 __put_user(env->dregs[7], &gregs[7]); in target_rt_setup_ucontext() [all …]
|
/openbmc/qemu/target/sh4/ |
H A D | gdbstub.c | 34 return gdb_get_regl(mem_buf, env->gregs[n + 16]); in superh_cpu_gdb_read_register() 36 return gdb_get_regl(mem_buf, env->gregs[n]); in superh_cpu_gdb_read_register() 39 return gdb_get_regl(mem_buf, env->gregs[n]); in superh_cpu_gdb_read_register() 68 return gdb_get_regl(mem_buf, env->gregs[n - 43]); in superh_cpu_gdb_read_register() 70 return gdb_get_regl(mem_buf, env->gregs[n - (51 - 16)]); in superh_cpu_gdb_read_register() 83 env->gregs[n + 16] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 85 env->gregs[n] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 89 env->gregs[n] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 132 env->gregs[n - 43] = ldl_p(mem_buf); in superh_cpu_gdb_write_register() 135 env->gregs[n - (51 - 16)] = ldl_p(mem_buf); in superh_cpu_gdb_write_register()
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A 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()
|
H A D | sigreturn.c | 306 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() 312 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr() 322 return &ctx->uc_mcontext.gregs[REG_SS]; in ssptr() 327 return &ctx->uc_mcontext.gregs[REG_CS]; in csptr() 441 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); in sigusr1() 446 ctx->uc_mcontext.gregs[REG_IP] = in sigusr1() 448 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; in sigusr1() 449 ctx->uc_mcontext.gregs[REG_CX] = 0; in sigusr1() 460 ctx->uc_mcontext.gregs[REG_DS] = 0; in sigusr1() 461 ctx->uc_mcontext.gregs[REG_ES] = 0; in sigusr1() [all …]
|
H A D | syscall_arg_fault.c | 48 long ax = (long)ctx->uc_mcontext.gregs[REG_AX]; in sigsegv_or_sigbus() 53 printf("\tIP = 0x%lx\n", (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigsegv_or_sigbus() 73 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigtrap() 90 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigill()
|
H A D | single_step_syscall.c | 87 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap() 103 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in print_and_longjmp() 104 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_TF); in print_and_longjmp() 106 sig_eflags = (unsigned long)ctx->uc_mcontext.gregs[REG_EFL]; in print_and_longjmp()
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | signal.c | 713 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local 724 err |= __get_user(regs->d0, &gregs[0]); in rt_restore_ucontext() 725 err |= __get_user(regs->d1, &gregs[1]); in rt_restore_ucontext() 726 err |= __get_user(regs->d2, &gregs[2]); in rt_restore_ucontext() 727 err |= __get_user(regs->d3, &gregs[3]); in rt_restore_ucontext() 728 err |= __get_user(regs->d4, &gregs[4]); in rt_restore_ucontext() 729 err |= __get_user(regs->d5, &gregs[5]); in rt_restore_ucontext() 730 err |= __get_user(sw->d6, &gregs[6]); in rt_restore_ucontext() 731 err |= __get_user(sw->d7, &gregs[7]); in rt_restore_ucontext() 732 err |= __get_user(regs->a0, &gregs[8]); in rt_restore_ucontext() [all …]
|
/openbmc/linux/arch/x86/um/shared/sysdep/ |
H A D | mcontext.h | 16 (fi).error_code = (mc)->gregs[REG_ERR]; \ 17 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ 24 (fi).cr2 = (mc)->gregs[REG_CR2]; \ 25 (fi).error_code = (mc)->gregs[REG_ERR]; \ 26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
|
/openbmc/linux/arch/x86/um/os-Linux/ |
H A D | mcontext.c | 10 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc() 11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc() 12 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc() 13 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc() 20 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc() 21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc()
|
/openbmc/linux/drivers/memory/ |
H A D | fsl_ifc.c | 51 if (!fsl_ifc_ctrl_dev || !fsl_ifc_ctrl_dev->gregs) in fsl_ifc_find() 55 u32 cspr = ifc_in32(&fsl_ifc_ctrl_dev->gregs->cspr_cs[i].cspr); in fsl_ifc_find() 68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init() 98 iounmap(ctrl->gregs); in fsl_ifc_ctrl_remove() 150 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq() 220 fsl_ifc_ctrl_dev->gregs = of_iomap(dev->dev.of_node, 0); in fsl_ifc_ctrl_probe() 221 if (!fsl_ifc_ctrl_dev->gregs) { in fsl_ifc_ctrl_probe() 234 version = ifc_in32(&fsl_ifc_ctrl_dev->gregs->ifc_rev) & in fsl_ifc_ctrl_probe() 244 addr = fsl_ifc_ctrl_dev->gregs; in fsl_ifc_ctrl_probe() 304 iounmap(fsl_ifc_ctrl_dev->gregs); in fsl_ifc_ctrl_probe()
|
/openbmc/qemu/linux-user/include/host/i386/ |
H A D | host-signal.h | 19 return uc->uc_mcontext.gregs[REG_EIP]; in host_signal_pc() 24 uc->uc_mcontext.gregs[REG_EIP] = pc; in host_signal_set_pc() 34 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write() 35 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
|
/openbmc/qemu/linux-user/include/host/x86_64/ |
H A D | host-signal.h | 18 return uc->uc_mcontext.gregs[REG_RIP]; in host_signal_pc() 23 uc->uc_mcontext.gregs[REG_RIP] = pc; in host_signal_set_pc() 33 return uc->uc_mcontext.gregs[REG_TRAPNO] == 0xe in host_signal_write() 34 && (uc->uc_mcontext.gregs[REG_ERR] & 0x2); in host_signal_write()
|
/openbmc/qemu/target/sparc/ |
H A D | monitor.c | 60 { "g0", offsetof(CPUSPARCState, gregs[0]) }, 61 { "g1", offsetof(CPUSPARCState, gregs[1]) }, 62 { "g2", offsetof(CPUSPARCState, gregs[2]) }, 63 { "g3", offsetof(CPUSPARCState, gregs[3]) }, 64 { "g4", offsetof(CPUSPARCState, gregs[4]) }, 65 { "g5", offsetof(CPUSPARCState, gregs[5]) }, 66 { "g6", offsetof(CPUSPARCState, gregs[6]) }, 67 { "g7", offsetof(CPUSPARCState, gregs[7]) },
|
/openbmc/openbmc/poky/meta/recipes-devtools/m4/m4/ |
H A D | 0001-sigsegv-Fix-build-on-ppc-musl.patch | 9 …gregs'? 223 | # … 28 +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_regs->gregs[1] 30 -# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1] 31 +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunqe.c | 63 static inline int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument 67 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset() 69 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset() 146 void __iomem *gregs = qecp->gregs; in qe_init() local 168 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init() 173 sbus_readl(gregs + GLOB_RSIZE); in qe_init() 475 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt() 722 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once() 724 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once() 726 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once() [all …]
|
H A D | sunbmac.c | 80 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument 84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset() 86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset() 101 void __iomem *gregs = bp->gregs; in qec_init() local 112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init() 113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init() 117 gregs + GLOB_MSIZE); in qec_init() 121 gregs + GLOB_TSIZE); in qec_init() 123 gregs + GLOB_RSIZE); in qec_init() 622 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local [all …]
|
/openbmc/linux/samples/seccomp/ |
H A D | bpf-direct.c | 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator() 74 buf = (char *) ctx->uc_mcontext.gregs[REG_ARG1]; in emulator() 75 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; in emulator() 79 if (ctx->uc_mcontext.gregs[REG_ARG0] != STDERR_FILENO) in emulator() 82 ctx->uc_mcontext.gregs[REG_RESULT] = -1; in emulator() 85 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; in emulator()
|
/openbmc/qemu/linux-user/sparc/ |
H A D | signal.c | 142 __put_user(env->gregs[i], ®s->u_regs[i]); in save_pt_regs() 175 __get_user(env->gregs[i], ®s->u_regs[i]); in restore_pt_regs() 629 __get_user(env->gregs[1], (&(*grp)[SPARC_MC_G1])); in sparc64_set_context() 630 __get_user(env->gregs[2], (&(*grp)[SPARC_MC_G2])); in sparc64_set_context() 631 __get_user(env->gregs[3], (&(*grp)[SPARC_MC_G3])); in sparc64_set_context() 632 __get_user(env->gregs[4], (&(*grp)[SPARC_MC_G4])); in sparc64_set_context() 633 __get_user(env->gregs[5], (&(*grp)[SPARC_MC_G5])); in sparc64_set_context() 634 __get_user(env->gregs[6], (&(*grp)[SPARC_MC_G6])); in sparc64_set_context() 751 __put_user(env->gregs[1], &((*grp)[SPARC_MC_G1])); in sparc64_get_context() 752 __put_user(env->gregs[2], &((*grp)[SPARC_MC_G2])); in sparc64_get_context() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/gperftools/gperftools/ |
H A D | ppc-musl.patch | 45 - result[n] = (void*) sigframe->mctx.gregs[PT_NIP]; 46 + result[n] = (void*) sigframe->mctx.gregs[32]; 55 result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP]; 57 + result[n] = (void*) sigframe->uc.uc_mcontext.gregs[32];
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | fsl_ifc_nand.c | 773 ifc_ctrl->regs.gregs = IFC_FCM_BASE_ADDR; in fsl_ifc_ctrl_init() 775 ver = ifc_in32(&ifc_ctrl->regs.gregs->ifc_rev); in fsl_ifc_ctrl_init() 829 csor = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor); in fsl_ifc_sram_init() 830 csor_ext = ifc_in32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext); in fsl_ifc_sram_init() 834 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor_8k); in fsl_ifc_sram_init() 835 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, 0x0000400); in fsl_ifc_sram_init() 875 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor, csor); in fsl_ifc_sram_init() 876 ifc_out32(&ifc_ctrl->regs.gregs->csor_cs[cs].csor_ext, csor_ext); in fsl_ifc_sram_init() 887 struct fsl_ifc_fcm *gregs = NULL; in fsl_ifc_chip_init() local 903 gregs = ifc_ctrl->regs.gregs; in fsl_ifc_chip_init() [all …]
|