Home
last modified time | relevance | path

Searched refs:cregs (Results 1 – 13 of 13) sorted by relevance

/arch/parisc/kernel/
Dprocess.c219 struct pt_regs *cregs = &(p->thread.regs); in copy_thread_tls() local
230 memset(cregs, 0, sizeof(struct pt_regs)); in copy_thread_tls()
236 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread_tls()
237 cregs->kpc = (unsigned long) &ret_from_kernel_thread; in copy_thread_tls()
243 cregs->gr[27] = ((unsigned long *)usp)[3]; in copy_thread_tls()
244 cregs->gr[26] = ((unsigned long *)usp)[2]; in copy_thread_tls()
246 cregs->gr[26] = usp; in copy_thread_tls()
248 cregs->gr[25] = kthread_arg; in copy_thread_tls()
257 cregs->gr[30] = usp; in copy_thread_tls()
259 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread_tls()
[all …]
/arch/arc/kernel/
Dptrace.c25 const struct callee_regs *cregs = task_callee_regs(target); in genregs_get() local
74 REG_O_ONE(callee.r25, &cregs->r25); in genregs_get()
75 REG_O_ONE(callee.r24, &cregs->r24); in genregs_get()
76 REG_O_ONE(callee.r23, &cregs->r23); in genregs_get()
77 REG_O_ONE(callee.r22, &cregs->r22); in genregs_get()
78 REG_O_ONE(callee.r21, &cregs->r21); in genregs_get()
79 REG_O_ONE(callee.r20, &cregs->r20); in genregs_get()
80 REG_O_ONE(callee.r19, &cregs->r19); in genregs_get()
81 REG_O_ONE(callee.r18, &cregs->r18); in genregs_get()
82 REG_O_ONE(callee.r17, &cregs->r17); in genregs_get()
[all …]
Ddisasm.c22 int userspace, struct pt_regs *regs, struct callee_regs *cregs) in disasm_instr() argument
115 state->src1 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
134 state->src1 = get_reg(state->src1, regs, cregs); in disasm_instr()
142 state->src2 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
187 state->target = get_reg(fieldC, regs, cregs); in disasm_instr()
222 cregs); in disasm_instr()
230 cregs); in disasm_instr()
285 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
286 state->src2 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
305 regs, cregs); in disasm_instr()
[all …]
Dunaligned.c133 struct callee_regs *cregs) in fixup_load() argument
139 set_reg(state->wb_reg, state->src1 + state->src2, regs, cregs); in fixup_load()
155 set_reg(state->dest, val, regs, cregs); in fixup_load()
163 struct callee_regs *cregs) in fixup_store() argument
167 set_reg(state->wb_reg, state->src2 + state->src3, regs, cregs); in fixup_store()
174 regs, cregs); in fixup_store()
177 regs, cregs); in fixup_store()
199 struct callee_regs *cregs) in misaligned_fixup() argument
223 disasm_instr(regs->ret, &state, 1, regs, cregs); in misaligned_fixup()
233 fixup_load(&state, regs, cregs); in misaligned_fixup()
[all …]
Dtroubleshoot.c56 static void show_callee_regs(struct callee_regs *cregs) in show_callee_regs() argument
58 print_reg_file(&(cregs->r13), 13); in show_callee_regs()
181 struct callee_regs *cregs; in show_regs() local
228 cregs = (struct callee_regs *)current->thread.callee_reg; in show_regs()
229 if (cregs) in show_regs()
230 show_callee_regs(cregs); in show_regs()
Dkgdb.c15 struct callee_regs *cregs) in to_gdb_regs() argument
20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
38 struct callee_regs *cregs) in from_gdb_regs() argument
43 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
Dtraps.c85 struct callee_regs *cregs) in do_misaligned_access() argument
88 if (misaligned_fixup(address, regs, cregs) != 0) in do_misaligned_access()
/arch/arc/include/asm/
Dunaligned.h16 struct callee_regs *cregs);
20 struct callee_regs *cregs) in misaligned_fixup() argument
Ddisasm.h106 int userspace, struct pt_regs *regs, struct callee_regs *cregs);
108 *cregs, unsigned long *fall_thru, unsigned long *target);
109 long get_reg(int reg, struct pt_regs *regs, struct callee_regs *cregs);
111 struct callee_regs *cregs);
/arch/sparc/mm/
Dleon_mm.c253 struct leon3_cacheregs cregs; in leon_flush_needed() local
254 leon3_getCacheRegs(&cregs); in leon_flush_needed()
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
257 ssize = 1 << ((cregs.dccr & LEON3_XCCR_SSIZE_MASK) >> 20); in leon_flush_needed()
/arch/s390/kernel/
Dsmp.c550 unsigned long cregs[16]; in smp_ctl_bit_callback() local
552 __ctl_store(cregs, 0, 15); in smp_ctl_bit_callback()
553 cregs[pp->cr] = (cregs[pp->cr] & pp->andval) | pp->orval; in smp_ctl_bit_callback()
554 __ctl_load(cregs, 0, 15); in smp_ctl_bit_callback()
920 unsigned long cregs[16]; in __cpu_disable() local
928 __ctl_store(cregs, 0, 15); in __cpu_disable()
929 cregs[0] &= ~0x0000ee70UL; /* disable all external interrupts */ in __cpu_disable()
930 cregs[6] &= ~0xff000000UL; /* disable all I/O interrupts */ in __cpu_disable()
931 cregs[14] &= ~0x1f000000UL; /* disable most machine checks */ in __cpu_disable()
932 __ctl_load(cregs, 0, 15); in __cpu_disable()
/arch/sparc/kernel/
Dpci_fire.c279 unsigned long cregs = (unsigned long) pbm->pbm_regs; in pci_fire_msiq_build_irq() local
285 imap_reg = cregs + (0x001000UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq()
286 iclr_reg = cregs + (0x001400UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq()
/arch/powerpc/platforms/cell/
Diommu.c685 void __iomem *xregs, *cregs; in cell_disable_iommus() local
694 cregs = xregs + IOC_IOCmd_Offset; in cell_disable_iommus()
700 val = in_be64(cregs + IOC_IOCmd_Cfg); in cell_disable_iommus()
702 out_be64(cregs + IOC_IOCmd_Cfg, val); in cell_disable_iommus()
703 (void)in_be64(cregs + IOC_IOCmd_Cfg); in cell_disable_iommus()