/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 | 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() 129 COPY(gregs[10]); COPY(gregs[11]); in setup_sigcontext() 152 COPY(gregs[0]); COPY(gregs[1]); in restore_sigcontext() 153 COPY(gregs[2]); COPY(gregs[3]); in restore_sigcontext() 154 COPY(gregs[4]); COPY(gregs[5]); in restore_sigcontext() 155 COPY(gregs[6]); COPY(gregs[7]); in restore_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]; 106 +#define UC_MCONTEXT_GREGS_R0 ((void *)&dmy_ctxt.GET_UC_REGS->gregs[0] - (void *)&dmy_ctxt) 107 +#define UC_MCONTEXT_GREGS_R1 ((void *)&dmy_ctxt.GET_UC_REGS->gregs[1] - (void *)&dmy_ctxt) 108 +#define UC_MCONTEXT_GREGS_R2 ((void *)&dmy_ctxt.GET_UC_REGS->gregs[2] - (void *)&dmy_ctxt) 109 +#define UC_MCONTEXT_GREGS_R3 ((void *)&dmy_ctxt.GET_UC_REGS->gregs[3] - (void *)&dmy_ctxt) 110 +#define UC_MCONTEXT_GREGS_R4 ((void *)&dmy_ctxt.GET_UC_REGS->gregs[4] - (void *)&dmy_ctxt) 111 +#define UC_MCONTEXT_GREGS_R5 ((void *)&dmy_ctxt.GET_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() 205 __put_user(env->pc, &gregs[16]); in target_rt_setup_ucontext() 206 __put_user(sr, &gregs[17]); in target_rt_setup_ucontext() 238 target_greg_t *gregs = uc->tuc_mcontext.gregs; in target_rt_restore_ucontext() local 261 __get_user(env->pc, &gregs[16]); in target_rt_restore_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 | 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() 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() 481 sig_err = ctx->uc_mcontext.gregs[REG_ERR]; in sigtrap() 482 sig_trapno = ctx->uc_mcontext.gregs[REG_TRAPNO]; in sigtrap() 487 greg_t asm_ss = ctx->uc_mcontext.gregs[REG_CX]; in sigtrap() [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()
|
H A D | mov_ss_trap.c | 121 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in sigtrap() 122 !!(ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_RF)); in sigtrap() 130 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_and_return() 138 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in handle_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 730 err |= __get_user(sw->d6, &gregs[6]); in rt_restore_ucontext() 731 err |= __get_user(sw->d7, &gregs[7]); in rt_restore_ucontext() 735 err |= __get_user(sw->a3, &gregs[11]); in rt_restore_ucontext() 736 err |= __get_user(sw->a4, &gregs[12]); in rt_restore_ucontext() 737 err |= __get_user(sw->a5, &gregs[13]); in rt_restore_ucontext() 739 err |= __get_user(usp, &gregs[15]); in rt_restore_ucontext() 742 err |= __get_user(temp, &gregs[17]); in rt_restore_ucontext() 833 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext() local 843 err |= __put_user(sw->d6, &gregs[6]); in rt_setup_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/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/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/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/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/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/linux/drivers/net/ethernet/sun/ |
H A D | sunqe.c | 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 173 sbus_readl(gregs + GLOB_RSIZE); in qe_init() 736 qecp->gregs + GLOB_MSIZE); in qec_init_once() 742 qecp->gregs + GLOB_TSIZE); in qec_init_once() 744 qecp->gregs + GLOB_RSIZE); in qec_init_once() 782 if (!qecp->gregs) in get_qec() 786 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); in get_qec() 793 if (qec_global_reset(qecp->gregs)) in get_qec() [all …]
|
H A D | sunbmac.c | 80 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument 101 void __iomem *gregs = bp->gregs; in qec_init() local 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 632 qec_global_reset(gregs); in bigmac_init_hw() 682 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw() 1102 if (!bp->gregs) { in bigmac_ether_init() 1114 if (qec_global_reset(bp->gregs)) in bigmac_ether_init() [all …]
|
/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];
|