Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/nios2/kernel/
Dsignal.c42 unsigned long *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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
Dsysret_rip.c73 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()
Dsigreturn.c309 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 …]
Dsyscall_arg_fault.c51 long ax = (long)ctx->uc_mcontext.gregs[REG_AX]; in sigsegv_or_sigbus()
56 printf("\tIP = 0x%lx\n", (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigsegv_or_sigbus()
76 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigtrap()
93 unsigned short *ip = (unsigned short *)ctx->uc_mcontext.gregs[REG_IP]; in sigill()
Dsingle_step_syscall.c88 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap()
104 (unsigned long)ctx->uc_mcontext.gregs[REG_IP], in print_and_longjmp()
105 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_TF); in print_and_longjmp()
107 sig_eflags = (unsigned long)ctx->uc_mcontext.gregs[REG_EFL]; in print_and_longjmp()
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.c111 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap()
117 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; in sigtrap()
127 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; in sigtrap()
Dentry_from_vm86.c58 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || in sighandler()
59 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { in sighandler()
73 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], in sighandler()
74 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]); in sighandler()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dsignal.c735 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local
746 err |= __get_user(regs->d0, &gregs[0]); in rt_restore_ucontext()
747 err |= __get_user(regs->d1, &gregs[1]); in rt_restore_ucontext()
748 err |= __get_user(regs->d2, &gregs[2]); in rt_restore_ucontext()
749 err |= __get_user(regs->d3, &gregs[3]); in rt_restore_ucontext()
750 err |= __get_user(regs->d4, &gregs[4]); in rt_restore_ucontext()
751 err |= __get_user(regs->d5, &gregs[5]); in rt_restore_ucontext()
752 err |= __get_user(sw->d6, &gregs[6]); in rt_restore_ucontext()
753 err |= __get_user(sw->d7, &gregs[7]); in rt_restore_ucontext()
754 err |= __get_user(regs->a0, &gregs[8]); in rt_restore_ucontext()
[all …]
/kernel/linux/linux-5.10/arch/x86/um/shared/sysdep/
Dmcontext.h16 (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]; \
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/
Dmcontext.c10 #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()
/kernel/linux/linux-5.10/drivers/memory/
Dfsl_ifc.c51 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()
97 iounmap(ctrl->gregs); in fsl_ifc_ctrl_remove()
149 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq()
219 fsl_ifc_ctrl_dev->gregs = of_iomap(dev->dev.of_node, 0); in fsl_ifc_ctrl_probe()
220 if (!fsl_ifc_ctrl_dev->gregs) { in fsl_ifc_ctrl_probe()
233 version = ifc_in32(&fsl_ifc_ctrl_dev->gregs->ifc_rev) & in fsl_ifc_ctrl_probe()
243 addr = fsl_ifc_ctrl_dev->gregs; in fsl_ifc_ctrl_probe()
296 iounmap(fsl_ifc_ctrl_dev->gregs); in fsl_ifc_ctrl_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsunqe.c63 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 …]
Dsunbmac.c80 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 …]
Dsunhme.c914 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) in happy_meal_stop() argument
921 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL); in happy_meal_stop()
922 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries) in happy_meal_stop()
1422 void __iomem *gregs = hp->gregs; in happy_meal_init() local
1447 happy_meal_stop(hp, gregs); in happy_meal_init()
1571 hme_read32(hp, gregs + GREG_CFG))); in happy_meal_init()
1575 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64); in happy_meal_init()
1601 hme_write32(hp, gregs + GREG_CFG, gcfg); in happy_meal_init()
1604 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32); in happy_meal_init()
1607 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16); in happy_meal_init()
[all …]
/kernel/linux/linux-5.10/samples/seccomp/
Dbpf-direct.c73 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()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dmpic.c218 return _mpic_read(type, &mpic->gregs, offset); in _mpic_ipi_read()
226 _mpic_write(mpic->reg_type, &mpic->gregs, offset, value); in _mpic_ipi_write()
353 mpic_write(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0), MPIC_VECPRI_MASK); in mpic_test_broken_ipi()
354 r = mpic_read(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0)); in mpic_test_broken_ipi()
1358 mpic_map(mpic, mpic->paddr, &mpic->gregs, MPIC_INFO(GREG_BASE), 0x1000); in mpic_alloc()
1420 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc()
1421 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1423 while( mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1430 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc()
1431 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/include/
Dutils.h142 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
143 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_MSR]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Delf.h54 #define ELF_CORE_COPY_REGS(gregs, regs) ppc_elf_core_copy_regs(gregs, regs); argument
/kernel/linux/linux-5.10/arch/nios2/include/uapi/asm/
Dsigcontext.h28 unsigned long gregs[32]; member
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Ducontext.h16 gregset_t gregs; member
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/alignment/
Dcopy_first_unaligned.c24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; in signal_action_handler()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/
Dtm-signal-msr-resv.c43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dpkey-powerpc.h15 #define gregs gp_regs macro
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c16 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]

12