Home
last modified time | relevance | path

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

/linux-6.15/arch/microblaze/kernel/
H 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.15/arch/hexagon/kernel/
H A Dprocess.c60 struct pt_regs *childregs; in copy_thread() local
63 childregs = (struct pt_regs *) (((unsigned long) ti + THREAD_SIZE) - in copy_thread()
64 sizeof(*childregs)); in copy_thread()
66 ti->regs = childregs; in copy_thread()
74 ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - in copy_thread()
79 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
83 pt_set_kmode(childregs); in copy_thread()
86 memcpy(childregs, current_pt_regs(), sizeof(*childregs)); in copy_thread()
90 pt_set_rte_sp(childregs, usp); in copy_thread()
93 childregs->r00 = 0; in copy_thread()
[all …]
/linux-6.15/arch/xtensa/kernel/
H A Dprocess.c281 SPILL_SLOT(childregs, 1) = (unsigned long)childregs; in copy_thread()
282 SPILL_SLOT(childregs, 0) = 0; in copy_thread()
284 p->thread.sp = (unsigned long)childregs; in copy_thread()
300 *childregs = *regs; in copy_thread()
301 childregs->areg[1] = usp; in copy_thread()
302 childregs->areg[2] = 0; in copy_thread()
319 int len = childregs->wmask & ~0xf; in copy_thread()
326 childregs->wmask = 1; in copy_thread()
327 childregs->windowstart = 1; in copy_thread()
328 childregs->windowbase = 0; in copy_thread()
[all …]
/linux-6.15/arch/s390/kernel/
H A Dprocess.c116 struct pt_regs childregs; in copy_thread() member
138 frame->sf.gprs[11 - 6] = (unsigned long)&frame->childregs; in copy_thread()
148 memset(&frame->childregs, 0, sizeof(struct pt_regs)); in copy_thread()
151 frame->childregs.gprs[9] = (unsigned long)args->fn; in copy_thread()
152 frame->childregs.gprs[10] = (unsigned long)args->fn_arg; in copy_thread()
153 frame->childregs.orig_gpr2 = -1; in copy_thread()
154 frame->childregs.last_break = 1; in copy_thread()
157 frame->childregs = *current_pt_regs(); in copy_thread()
159 frame->childregs.flags = 0; in copy_thread()
161 frame->childregs.gprs[15] = new_stackp; in copy_thread()
[all …]
/linux-6.15/arch/sh/kernel/
H 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.15/arch/csky/kernel/
H 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.15/arch/loongarch/kernel/
H A Dprocess.c155 childregs = (struct pt_regs *) childksp - 1; in copy_thread()
157 childksp = (unsigned long) childregs; in copy_thread()
171 childregs->csr_euen = p->thread.csr_euen; in copy_thread()
172 childregs->csr_crmd = p->thread.csr_crmd; in copy_thread()
173 childregs->csr_prmd = p->thread.csr_prmd; in copy_thread()
174 childregs->csr_ecfg = p->thread.csr_ecfg; in copy_thread()
179 *childregs = *regs; in copy_thread()
182 childregs->regs[3] = usp; in copy_thread()
184 p->thread.reg03 = (unsigned long) childregs; in copy_thread()
192 childregs->csr_euen = 0; in copy_thread()
[all …]
/linux-6.15/arch/nios2/kernel/
H 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.15/arch/sparc/kernel/
H 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.15/arch/riscv/kernel/
H A Dprocess.c214 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
225 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
227 childregs->status = SR_PP | SR_PIE; in copy_thread()
232 *childregs = *(current_pt_regs()); in copy_thread()
234 riscv_v_vstate_off(childregs); in copy_thread()
236 childregs->sp = usp; in copy_thread()
238 childregs->tp = tls; in copy_thread()
239 childregs->a0 = 0; /* Return value of fork() */ in copy_thread()
246 p->thread.sp = (unsigned long)childregs; /* kernel sp */ in copy_thread()
/linux-6.15/arch/alpha/kernel/
H A Dprocess.c241 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
245 childstack = ((struct switch_stack *) childregs) - 1; in copy_thread()
257 childregs->hae = alpha_mv.hae_cache; in copy_thread()
272 *childregs = *regs; in copy_thread()
273 childregs->r0 = 0; in copy_thread()
274 childregs->r19 = 0; in copy_thread()
275 childregs->r20 = 1; /* OSF/1 has some strange fork() semantics. */ in copy_thread()
/linux-6.15/arch/arm/kernel/
H A Dprocess.c241 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
256 *childregs = *current_pt_regs(); in copy_thread()
257 childregs->ARM_r0 = 0; in copy_thread()
259 childregs->ARM_sp = stack_start; in copy_thread()
261 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
264 childregs->ARM_cpsr = SVC_MODE; in copy_thread()
267 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
/linux-6.15/arch/arm64/kernel/
H A Dprocess.c405 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
422 *childregs = *current_pt_regs(); in copy_thread()
423 childregs->regs[0] = 0; in copy_thread()
438 childregs->compat_sp = stack_start; in copy_thread()
440 childregs->sp = stack_start; in copy_thread()
463 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
464 childregs->pstate = PSR_MODE_EL1h | PSR_IL_BIT; in copy_thread()
465 childregs->stackframe.type = FRAME_META_TYPE_FINAL; in copy_thread()
474 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
479 p->thread.cpu_context.fp = (unsigned long)&childregs->stackframe; in copy_thread()
/linux-6.15/arch/mips/kernel/
H 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()
140 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
151 childregs->cp0_status = status; in copy_thread()
156 *childregs = *regs; in copy_thread()
157 childregs->regs[7] = 0; /* Clear error flag */ in copy_thread()
158 childregs->regs[2] = 0; /* Child gets zero as return value */ in copy_thread()
160 childregs->regs[29] = usp; in copy_thread()
162 p->thread.reg29 = (unsigned long) childregs; in copy_thread()
[all …]
/linux-6.15/arch/x86/kernel/
H A Dprocess.c172 struct pt_regs *childregs; in copy_thread() local
176 childregs = task_pt_regs(p); in copy_thread()
177 fork_frame = container_of(childregs, struct fork_frame, regs); in copy_thread()
180 frame->bp = encode_frame_pointer(childregs); in copy_thread()
200 p->thread.sp0 = (unsigned long) (childregs + 1); in copy_thread()
225 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
237 *childregs = *current_pt_regs(); in copy_thread()
238 childregs->ax = 0; in copy_thread()
240 childregs->sp = sp; in copy_thread()
253 childregs->sp = 0; in copy_thread()
[all …]
/linux-6.15/arch/powerpc/kernel/
H A Dprocess.c1785 struct pt_regs *childregs; in copy_thread() local
1801 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
1803 childregs->softe = IRQS_ENABLED; in copy_thread()
1812 *childregs = *regs; in copy_thread()
1814 childregs->gpr[1] = usp; in copy_thread()
1815 ((unsigned long *)sp)[0] = childregs->gpr[1]; in copy_thread()
1817 WARN_ON_ONCE(childregs->softe != IRQS_ENABLED); in copy_thread()
1823 childregs->gpr[13] = tls; in copy_thread()
1825 childregs->gpr[2] = tls; in copy_thread()
1834 childregs->msr &= ~(MSR_FP|MSR_VEC|MSR_VSX); in copy_thread()
[all …]