/linux-master/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]; \
|
/linux-master/arch/nios2/include/uapi/asm/ |
H A D | sigcontext.h | 28 unsigned long gregs[32]; member in struct:sigcontext
|
/linux-master/arch/nios2/kernel/ |
H A D | signal.c | 42 unsigned long __user *gregs = uc->uc_mcontext.gregs; local 52 err |= __get_user(regs->r1, &gregs[0]); 53 err |= __get_user(regs->r2, &gregs[1]); 54 err |= __get_user(regs->r3, &gregs[2]); 55 err |= __get_user(regs->r4, &gregs[3]); 56 err |= __get_user(regs->r5, &gregs[4]); 57 err |= __get_user(regs->r6, &gregs[5]); 58 err |= __get_user(regs->r7, &gregs[6]); 59 err |= __get_user(regs->r8, &gregs[ 131 unsigned long __user *gregs = uc->uc_mcontext.gregs; local [all...] |
/linux-master/arch/x86/um/os-Linux/ |
H A D | mcontext.c | 10 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] 11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] 12 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; 13 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; 20 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] 21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X]
|
/linux-master/arch/m68k/include/asm/ |
H A D | ucontext.h | 16 gregset_t gregs; member in struct:mcontext
|
/linux-master/tools/testing/selftests/x86/ |
H A D | nx_stack.c | 125 stack_min_addr = ++uc->uc_mcontext.gregs[RDI]; 129 uc->uc_mcontext.gregs[RIP] = (uintptr_t)&make_stack2; 133 unsigned long stack_max_addr = uc->uc_mcontext.gregs[RDI]; 138 uc->uc_mcontext.gregs[RIP] = stack_max_addr - PAGE_SIZE; 142 uc->uc_mcontext.gregs[RIP] -= PAGE_SIZE; 143 if (uc->uc_mcontext.gregs[RIP] == stack_min_addr) { 156 unsigned long rip = uc->uc_mcontext.gregs[RIP];
|
H A D | sysret_rip.c | 73 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { 75 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); 80 memcpy(&ctx->uc_mcontext.gregs, &initial_regs, sizeof(gregset_t)); 89 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); 92 ctx->uc_mcontext.gregs[REG_RIP] = rip; 93 ctx->uc_mcontext.gregs[REG_RCX] = rip; 96 assert(ctx->uc_mcontext.gregs[REG_EFL] == 97 ctx->uc_mcontext.gregs[REG_R11]); 117 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { 119 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RI [all...] |
H A D | sigreturn.c | 306 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; 312 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; 322 return &ctx->uc_mcontext.gregs[REG_SS]; 327 return &ctx->uc_mcontext.gregs[REG_CS]; 441 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); 446 ctx->uc_mcontext.gregs[REG_IP] = 448 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; 449 ctx->uc_mcontext.gregs[REG_CX] = 0; 460 ctx->uc_mcontext.gregs[REG_DS] = 0; 461 ctx->uc_mcontext.gregs[REG_E [all...] |
H A D | syscall_arg_fault.c | 48 long ax = (long)ctx->uc_mcontext.gregs[REG_AX]; 53 printf("\tIP = 0x%lx\n", (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); 73 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; 90 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP];
|
H A D | single_step_syscall.c | 87 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); 103 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], 104 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_TF); 106 sig_eflags = (unsigned long)ctx->uc_mcontext.gregs[REG_EFL];
|
H A D | unwind_vdso.c | 111 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; 117 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; 127 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF;
|
H A D | entry_from_vm86.c | 58 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || 59 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { 73 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], 74 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]);
|
H A D | mov_ss_trap.c | 121 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], 122 !!(ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_RF)); 130 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); 138 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]);
|
/linux-master/arch/m68k/kernel/ |
H A D | signal.c | 715 greg_t __user *gregs = uc->uc_mcontext.gregs; local 726 err |= __get_user(regs->d0, &gregs[0]); 727 err |= __get_user(regs->d1, &gregs[1]); 728 err |= __get_user(regs->d2, &gregs[2]); 729 err |= __get_user(regs->d3, &gregs[3]); 730 err |= __get_user(regs->d4, &gregs[4]); 731 err |= __get_user(regs->d5, &gregs[5]); 732 err |= __get_user(sw->d6, &gregs[6]); 733 err |= __get_user(sw->d7, &gregs[ 835 greg_t __user *gregs = uc->uc_mcontext.gregs; local [all...] |
/linux-master/drivers/memory/ |
H A D | fsl_ifc.c | 51 if (!fsl_ifc_ctrl_dev || !fsl_ifc_ctrl_dev->gregs) 55 u32 cspr = ifc_in32(&fsl_ifc_ctrl_dev->gregs->cspr_cs[i].cspr); 68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; 98 iounmap(ctrl->gregs); 148 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; 218 fsl_ifc_ctrl_dev->gregs = of_iomap(dev->dev.of_node, 0); 219 if (!fsl_ifc_ctrl_dev->gregs) { 232 version = ifc_in32(&fsl_ifc_ctrl_dev->gregs->ifc_rev) & 242 addr = fsl_ifc_ctrl_dev->gregs; 302 iounmap(fsl_ifc_ctrl_dev->gregs); [all...] |
/linux-master/samples/seccomp/ |
H A D | bpf-direct.c | 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; 74 buf = (char *) ctx->uc_mcontext.gregs[REG_ARG1]; 75 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; 79 if (ctx->uc_mcontext.gregs[REG_ARG0] != STDERR_FILENO) 82 ctx->uc_mcontext.gregs[REG_RESULT] = -1; 85 ctx->uc_mcontext.gregs[REG_RESULT] = bytes;
|
/linux-master/tools/testing/selftests/powerpc/alignment/ |
H A D | copy_first_unaligned.c | 24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP];
|
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-msr-resv.c | 43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL);
|
/linux-master/drivers/net/ethernet/sun/ |
H A D | sunqe.c | 63 static inline int qec_global_reset(void __iomem *gregs) argument 67 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); 69 u32 tmp = sbus_readl(gregs + GLOB_CTRL); 146 void __iomem *gregs = qecp->gregs; local 168 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); 173 sbus_readl(gregs + GLOB_RSIZE); 475 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); 722 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); 724 sbus_writel(GLOB_CTRL_B32, qecp->gregs [all...] |
H A D | sunbmac.c | 80 static int qec_global_reset(void __iomem *gregs) argument 84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); 86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { 101 void __iomem *gregs = bp->gregs; local 112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); 113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); 117 gregs + GLOB_MSIZE); 121 gregs + GLOB_TSIZE); 123 gregs 622 void __iomem *gregs = bp->gregs; local [all...] |
/linux-master/arch/powerpc/sysdev/ |
H A D | mpic.c | 220 return _mpic_read(type, &mpic->gregs, offset); 228 _mpic_write(mpic->reg_type, &mpic->gregs, offset, value); 355 mpic_write(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0), MPIC_VECPRI_MASK); 356 r = mpic_read(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0)); 1359 mpic_map(mpic, mpic->paddr, &mpic->gregs, MPIC_INFO(GREG_BASE), 0x1000); 1419 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), 1420 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) 1422 while( mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) 1429 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), 1430 mpic_read(mpic->gregs, MPIC_INF [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | elf.h | 54 #define ELF_CORE_COPY_REGS(gregs, regs) ppc_elf_core_copy_regs(gregs, regs);
|
/linux-master/tools/testing/selftests/powerpc/include/ |
H A D | utils.h | 205 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP] 206 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_MSR]
|
/linux-master/tools/testing/selftests/mm/ |
H A D | pkey-powerpc.h | 12 #define gregs gp_regs macro
|
/linux-master/tools/testing/selftests/powerpc/copyloops/ |
H A D | exc_validate.c | 16 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
|