Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/arch/nios2/kernel/
H A Dsignal.c42 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 …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-support/libunwind/libunwind/
H A D0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch40 - 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 …]
/OK3568_Linux_fs/kernel/arch/m68k/kernel/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/x86/
H A 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()
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/arch/x86/um/shared/sysdep/
H A 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]; \
/OK3568_Linux_fs/kernel/drivers/memory/
H A 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()
/OK3568_Linux_fs/kernel/arch/x86/um/os-Linux/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sun/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/m4/m4/
H A D0001-sigsegv-Fix-build-on-ppc-musl.patch9gregs'? 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]
/OK3568_Linux_fs/kernel/samples/seccomp/
H A 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()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/gperftools/gperftools/
H A Dppc-musl.patch9 + pc_fields="$pc_fields uc_mcontext.gregs[[PT_NIP]]"
50 - result[n] = (void*) sigframe->mctx.gregs[PT_NIP];
51 + result[n] = (void*) sigframe->mctx.gregs[32];
60 result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP];
62 + result[n] = (void*) sigframe->uc.uc_mcontext.gregs[32];
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dfsl_ifc_nand.c774 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 …]
/OK3568_Linux_fs/kernel/arch/powerpc/sysdev/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/mips/mach-ath79/
H A Dreset.c80 void __iomem *gregs = map_physmem(AR933X_GMAC_BASE, AR933X_GMAC_SIZE, in eth_init_ar933x() local
102 clrsetbits_be32(gregs + AR933X_GMAC_REG_ETH_CFG, in eth_init_ar933x()
115 void __iomem *gregs = map_physmem(AR934X_GMAC_BASE, AR934X_GMAC_SIZE, in eth_init_ar934x() local
135 writel(AR934X_ETH_CFG_RGMII_GMAC0, gregs + AR934X_GMAC_REG_ETH_CFG); in eth_init_ar934x()
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dcpu_init_early.c73 ifc_out32(&(ifc_regs.gregs->cspr_cs[0].cspr), CONFIG_SYS_CSPR0); in setup_ifc()
74 ifc_out32(&(ifc_regs.gregs->csor_cs[0].csor), CONFIG_SYS_CSOR0); in setup_ifc()
75 ifc_out32(&(ifc_regs.gregs->amask_cs[0].amask), CONFIG_SYS_AMASK0); in setup_ifc()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/redis/redis-7/
H A D0006-Define-correct-gregs-for-RISCV32.patch4 Subject: [PATCH] Define correct gregs for RISCV32
27 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip);
29 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/redis/redis/
H A D0006-Define-correct-gregs-for-RISCV32.patch4 Subject: [PATCH] Define correct gregs for RISCV32
27 GET_SET_RETURN(uc->uc_mcontext.gregs[14], eip);
29 GET_SET_RETURN(uc->uc_mcontext.gregs[16], eip);
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-multimedia/jack/a2jmidid/
H A Dppc_musl_ucontext.patch2 correct gregs and context structure definitions
15 + ucontext->uc_regs->gregs[i]

123