Home
last modified time | relevance | path

Searched refs:childregs (Results 1 – 16 of 16) sorted by relevance

/linux-6.3-rc2/arch/microblaze/kernel/
A Dprocess.c60 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
71 childregs->pt_mode = 1; in copy_thread()
72 local_save_flags(childregs->msr); in copy_thread()
77 *childregs = *current_pt_regs(); in copy_thread()
79 childregs->r1 = usp; in copy_thread()
83 childregs->msr |= MSR_UMS; in copy_thread()
95 childregs->msr &= ~MSR_EIP; in copy_thread()
96 childregs->msr |= MSR_IE; in copy_thread()
97 childregs->msr &= ~MSR_VM; in copy_thread()
98 childregs->msr |= MSR_VMS; in copy_thread()
[all …]
/linux-6.3-rc2/arch/hexagon/kernel/
A Dprocess.c59 struct pt_regs *childregs; in copy_thread() local
62 childregs = (struct pt_regs *) (((unsigned long) ti + THREAD_SIZE) - in copy_thread()
63 sizeof(*childregs)); in copy_thread()
65 ti->regs = childregs; in copy_thread()
73 ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - in copy_thread()
78 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
82 pt_set_kmode(childregs); in copy_thread()
85 memcpy(childregs, current_pt_regs(), sizeof(*childregs)); in copy_thread()
89 pt_set_rte_sp(childregs, usp); in copy_thread()
92 childregs->r00 = 0; in copy_thread()
[all …]
/linux-6.3-rc2/arch/xtensa/kernel/
A Dprocess.c280 SPILL_SLOT(childregs, 1) = (unsigned long)childregs; in copy_thread()
281 SPILL_SLOT(childregs, 0) = 0; in copy_thread()
283 p->thread.sp = (unsigned long)childregs; in copy_thread()
299 *childregs = *regs; in copy_thread()
300 childregs->areg[1] = usp; in copy_thread()
301 childregs->areg[2] = 0; in copy_thread()
318 int len = childregs->wmask & ~0xf; in copy_thread()
325 childregs->wmask = 1; in copy_thread()
326 childregs->windowstart = 1; in copy_thread()
327 childregs->windowbase = 0; in copy_thread()
[all …]
/linux-6.3-rc2/arch/s390/kernel/
A Dprocess.c117 struct pt_regs childregs; in copy_thread() member
149 memset(&frame->childregs, 0, sizeof(struct pt_regs)); in copy_thread()
152 frame->childregs.psw.addr = in copy_thread()
154 frame->childregs.gprs[9] = (unsigned long)args->fn; in copy_thread()
155 frame->childregs.gprs[10] = (unsigned long)args->fn_arg; in copy_thread()
156 frame->childregs.orig_gpr2 = -1; in copy_thread()
157 frame->childregs.last_break = 1; in copy_thread()
160 frame->childregs = *current_pt_regs(); in copy_thread()
162 frame->childregs.flags = 0; in copy_thread()
164 frame->childregs.gprs[15] = new_stackp; in copy_thread()
[all …]
/linux-6.3-rc2/arch/sh/kernel/
A Dprocess_32.c96 struct pt_regs *childregs; in copy_thread() local
112 childregs = task_pt_regs(p); in copy_thread()
113 p->thread.sp = (unsigned long) childregs; in copy_thread()
115 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
117 childregs->regs[4] = (unsigned long) args->fn_arg; in copy_thread()
118 childregs->regs[5] = (unsigned long) args->fn; in copy_thread()
119 childregs->sr = SR_MD; in copy_thread()
121 childregs->sr |= SR_FD; in copy_thread()
127 *childregs = *current_pt_regs(); in copy_thread()
130 childregs->regs[15] = usp; in copy_thread()
[all …]
/linux-6.3-rc2/arch/csky/kernel/
A Dprocess.c39 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
45 childstack = ((struct switch_stack *) childregs) - 1; in copy_thread()
52 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
56 childregs->sr = mfcr("psr"); in copy_thread()
58 *childregs = *(current_pt_regs()); in copy_thread()
60 childregs->usp = usp; in copy_thread()
62 task_thread_info(p)->tp_value = childregs->tls in copy_thread()
65 childregs->a0 = 0; in copy_thread()
/linux-6.3-rc2/arch/loongarch/kernel/
A Dprocess.c147 childregs = (struct pt_regs *) childksp - 1; in copy_thread()
149 childksp = (unsigned long) childregs; in copy_thread()
163 childregs->csr_euen = p->thread.csr_euen; in copy_thread()
164 childregs->csr_crmd = p->thread.csr_crmd; in copy_thread()
165 childregs->csr_prmd = p->thread.csr_prmd; in copy_thread()
166 childregs->csr_ecfg = p->thread.csr_ecfg; in copy_thread()
171 *childregs = *regs; in copy_thread()
174 childregs->regs[3] = usp; in copy_thread()
176 p->thread.reg03 = (unsigned long) childregs; in copy_thread()
184 childregs->csr_euen = 0; in copy_thread()
[all …]
/linux-6.3-rc2/arch/riscv/kernel/
A Dprocess.c164 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
171 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
172 childregs->gp = gp_in_global; in copy_thread()
174 childregs->status = SR_PP | SR_PIE; in copy_thread()
180 *childregs = *(current_pt_regs()); in copy_thread()
182 childregs->sp = usp; in copy_thread()
184 childregs->tp = tls; in copy_thread()
185 childregs->a0 = 0; /* Return value of fork() */ in copy_thread()
188 p->thread.sp = (unsigned long)childregs; /* kernel sp */ in copy_thread()
/linux-6.3-rc2/arch/nios2/kernel/
A Dprocess.c107 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
111 ((struct switch_stack *)childregs) - 1; in copy_thread()
120 childregs->estatus = STATUS_PIE; in copy_thread()
121 childregs->sp = (unsigned long) childstack; in copy_thread()
124 p->thread.kregs = childregs; in copy_thread()
129 *childregs = *regs; in copy_thread()
130 childregs->r2 = 0; /* Set the return value for the child. */ in copy_thread()
131 childregs->r7 = 0; in copy_thread()
136 p->thread.kregs = childregs; in copy_thread()
140 childregs->sp = usp; in copy_thread()
/linux-6.3-rc2/arch/sparc/kernel/
A Dprocess_32.c267 struct pt_regs *childregs, *regs = current_pt_regs(); local
288 childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ);
298 p->thread.kregs = childregs;
305 childregs->u_regs[UREG_G1] = (unsigned long) args->fn;
307 psr = childregs->psr = get_psr();
313 childregs->u_regs[UREG_FP] = sp;
345 childregs->u_regs[UREG_FP] = (unsigned long)childstack;
350 childregs->psr &= ~PSR_EF;
355 childregs->u_regs[UREG_I0] = current->pid;
356 childregs->u_regs[UREG_I1] = 1;
[all …]
/linux-6.3-rc2/arch/alpha/kernel/
A Dprocess.c239 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
243 childstack = ((struct switch_stack *) childregs) - 1; in copy_thread()
255 childregs->hae = alpha_mv.hae_cache; in copy_thread()
270 *childregs = *regs; in copy_thread()
271 childregs->r0 = 0; in copy_thread()
272 childregs->r19 = 0; in copy_thread()
273 childregs->r20 = 1; /* OSF/1 has some strange fork() semantics. */ in copy_thread()
/linux-6.3-rc2/arch/arm64/kernel/
A Dprocess.c350 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
366 *childregs = *current_pt_regs(); in copy_thread()
367 childregs->regs[0] = 0; in copy_thread()
379 childregs->compat_sp = stack_start; in copy_thread()
381 childregs->sp = stack_start; in copy_thread()
400 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
401 childregs->pstate = PSR_MODE_EL1h | PSR_IL_BIT; in copy_thread()
407 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
412 p->thread.cpu_context.fp = (unsigned long)childregs->stackframe; in copy_thread()
/linux-6.3-rc2/arch/arm/kernel/
A Dprocess.c242 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
257 *childregs = *current_pt_regs(); in copy_thread()
258 childregs->ARM_r0 = 0; in copy_thread()
260 childregs->ARM_sp = stack_start; in copy_thread()
262 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
265 childregs->ARM_cpsr = SVC_MODE; in copy_thread()
268 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
/linux-6.3-rc2/arch/x86/kernel/
A Dprocess.c142 struct pt_regs *childregs; in copy_thread() local
145 childregs = task_pt_regs(p); in copy_thread()
146 fork_frame = container_of(childregs, struct fork_frame, regs); in copy_thread()
149 frame->bp = encode_frame_pointer(childregs); in copy_thread()
166 p->thread.sp0 = (unsigned long) (childregs + 1); in copy_thread()
182 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
194 *childregs = *current_pt_regs(); in copy_thread()
195 childregs->ax = 0; in copy_thread()
197 childregs->sp = sp; in copy_thread()
210 childregs->sp = 0; in copy_thread()
[all …]
/linux-6.3-rc2/arch/mips/kernel/
A Dprocess.c114 struct pt_regs *childregs, *regs = current_pt_regs(); in copy_thread() local
120 childregs = (struct pt_regs *) childksp - 1; in copy_thread()
122 childksp = (unsigned long) childregs; in copy_thread()
127 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
138 childregs->cp0_status = status; in copy_thread()
143 *childregs = *regs; in copy_thread()
144 childregs->regs[7] = 0; /* Clear error flag */ in copy_thread()
145 childregs->regs[2] = 0; /* Child gets zero as return value */ in copy_thread()
147 childregs->regs[29] = usp; in copy_thread()
149 p->thread.reg29 = (unsigned long) childregs; in copy_thread()
[all …]
/linux-6.3-rc2/arch/powerpc/kernel/
A Dprocess.c1744 struct pt_regs *childregs, *kregs; in copy_thread() local
1766 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
1773 childregs->softe = IRQS_ENABLED; in copy_thread()
1782 *childregs = *regs; in copy_thread()
1784 childregs->gpr[1] = usp; in copy_thread()
1785 ((unsigned long *)sp)[0] = childregs->gpr[1]; in copy_thread()
1786 p->thread.regs = childregs; in copy_thread()
1792 childregs->gpr[13] = tls; in copy_thread()
1794 childregs->gpr[2] = tls; in copy_thread()
1802 childregs->msr &= ~(MSR_FP|MSR_VEC|MSR_VSX); in copy_thread()
[all …]

Completed in 30 milliseconds