Home
last modified time | relevance | path

Searched refs:childregs (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/arch/microblaze/kernel/
H A Dprocess.c59 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
65 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
67 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
70 childregs->pt_mode = 1; in copy_thread()
71 local_save_flags(childregs->msr); in copy_thread()
73 ti->cpu_context.msr = childregs->msr & ~MSR_IE; in copy_thread()
78 *childregs = *current_pt_regs(); in copy_thread()
80 childregs->r1 = usp; in copy_thread()
83 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
85 ti->cpu_context.msr = (unsigned long)childregs in copy_thread()
[all...]
/kernel/linux/linux-6.6/arch/microblaze/kernel/
H A Dprocess.c60 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
66 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
68 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
71 childregs->pt_mode = 1; in copy_thread()
72 local_save_flags(childregs->msr); in copy_thread()
73 ti->cpu_context.msr = childregs->msr & ~MSR_IE; in copy_thread()
77 *childregs = *current_pt_regs(); in copy_thread()
79 childregs->r1 = usp; in copy_thread()
82 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
83 childregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/c6x/kernel/
H A Dprocess.c111 struct pt_regs *childregs; in copy_thread() local
113 childregs = task_pt_regs(p); in copy_thread()
117 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
118 childregs->sp = (unsigned long)(childregs + 1); in copy_thread()
120 childregs->a0 = usp; /* function */ in copy_thread()
121 childregs->a1 = ustk_size; /* argument */ in copy_thread()
124 *childregs = *current_pt_regs(); in copy_thread()
126 childregs->sp = usp; in copy_thread()
131 p->thread.usp = childregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/xtensa/kernel/
H A Dprocess.c169 * in the clone_flags) and set up passed usp in the childregs.
173 * childregs are not used for the kernel threads.
178 * | childregs |
191 * childregs.
208 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
214 /* Create a call4 dummy-frame: a0 = 0, a1 = childregs. */ in copy_thread()
215 SPILL_SLOT(childregs, 1) = (unsigned long)childregs; in copy_thread()
216 SPILL_SLOT(childregs, 0) = 0; in copy_thread()
218 p->thread.sp = (unsigned long)childregs; in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/hexagon/kernel/
H A Dprocess.c58 struct pt_regs *childregs; in copy_thread() local
61 childregs = (struct pt_regs *) (((unsigned long) ti + THREAD_SIZE) - in copy_thread()
62 sizeof(*childregs)); in copy_thread()
64 ti->regs = childregs; in copy_thread()
72 ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - in copy_thread()
77 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
81 pt_set_kmode(childregs); in copy_thread()
84 memcpy(childregs, current_pt_regs(), sizeof(*childregs)); in copy_thread()
88 pt_set_rte_sp(childregs, us in copy_thread()
[all...]
/kernel/linux/linux-6.6/arch/hexagon/kernel/
H 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, us in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/
H A Dprocess_32.c99 struct pt_regs *childregs; in copy_thread() local
115 childregs = task_pt_regs(p); in copy_thread()
116 p->thread.sp = (unsigned long) childregs; in copy_thread()
118 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
120 childregs->regs[4] = arg; in copy_thread()
121 childregs->regs[5] = usp; in copy_thread()
122 childregs->sr = SR_MD; in copy_thread()
124 childregs->sr |= SR_FD; in copy_thread()
131 *childregs = *current_pt_regs(); in copy_thread()
134 childregs in copy_thread()
[all...]
/kernel/linux/linux-6.6/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 in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dprocess.c101 struct pt_regs childregs; in copy_thread() member
104 frame = container_of(task_pt_regs(p), struct fake_frame, childregs); in copy_thread()
132 memset(&frame->childregs, 0, sizeof(struct pt_regs)); in copy_thread()
133 frame->childregs.psw.mask = PSW_KERNEL_BITS | PSW_MASK_DAT | in copy_thread()
135 frame->childregs.psw.addr = in copy_thread()
137 frame->childregs.gprs[9] = new_stackp; /* function */ in copy_thread()
138 frame->childregs.gprs[10] = arg; in copy_thread()
139 frame->childregs.gprs[11] = (unsigned long) do_exit; in copy_thread()
140 frame->childregs.orig_gpr2 = -1; in copy_thread()
144 frame->childregs in copy_thread()
[all...]
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dprocess.c117 struct pt_regs childregs; in copy_thread() member
120 frame = container_of(task_pt_regs(p), struct fake_frame, childregs); in copy_thread()
139 frame->sf.gprs[11 - 6] = (unsigned long)&frame->childregs; in copy_thread()
149 memset(&frame->childregs, 0, sizeof(struct pt_regs)); in copy_thread()
150 frame->childregs.psw.mask = PSW_KERNEL_BITS | PSW_MASK_IO | in copy_thread()
152 frame->childregs.gprs[9] = (unsigned long)args->fn; in copy_thread()
153 frame->childregs.gprs[10] = (unsigned long)args->fn_arg; in copy_thread()
154 frame->childregs.orig_gpr2 = -1; in copy_thread()
155 frame->childregs.last_break = 1; in copy_thread()
158 frame->childregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/h8300/kernel/
H A Dprocess.c111 struct pt_regs *childregs; in copy_thread() local
113 childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1; in copy_thread()
116 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
117 childregs->retpc = (unsigned long) ret_from_kernel_thread; in copy_thread()
118 childregs->er4 = topstk; /* arg */ in copy_thread()
119 childregs->er5 = usp; /* fn */ in copy_thread()
121 *childregs = *current_pt_regs(); in copy_thread()
122 childregs->er0 = 0; in copy_thread()
123 childregs->retpc = (unsigned long) ret_from_fork; in copy_thread()
126 p->thread.ksp = (unsigned long)childregs; in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/csky/kernel/
H A Dprocess.c40 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
46 childstack = ((struct switch_stack *) childregs) - 1; in copy_thread()
53 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
57 childregs->sr = mfcr("psr"); in copy_thread()
59 *childregs = *(current_pt_regs()); in copy_thread()
61 childregs->usp = usp; in copy_thread()
63 task_thread_info(p)->tp_value = childregs->tls in copy_thread()
66 childregs->a0 = 0; in copy_thread()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/arch/xtensa/kernel/
H A Dprocess.c232 * in the clone_flags) and set up passed usp in the childregs.
236 * childregs are not used for the kernel threads.
241 * | childregs |
254 * childregs.
272 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
279 /* Create a call4 dummy-frame: a0 = 0, a1 = childregs. */ in copy_thread()
280 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()
[all...]
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dprocess.c155 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
160 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
166 *childregs = *current_pt_regs(); in copy_thread()
168 childregs->sp = stack_start; in copy_thread()
170 childregs->uregs[0] = 0; in copy_thread()
171 childregs->osp = 0; in copy_thread()
173 childregs->uregs[25] = tls; in copy_thread()
177 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
196 childregs->lb = 0; in copy_thread()
197 childregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dprocess.c127 struct pt_regs *childregs, *regs = current_pt_regs(); in copy_thread() local
132 childregs = (struct pt_regs *) childksp - 1; in copy_thread()
134 childksp = (unsigned long) childregs; in copy_thread()
147 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
148 childregs->csr_euen = p->thread.csr_euen; in copy_thread()
149 childregs->csr_crmd = p->thread.csr_crmd; in copy_thread()
150 childregs->csr_prmd = p->thread.csr_prmd; in copy_thread()
151 childregs->csr_ecfg = p->thread.csr_ecfg; in copy_thread()
156 *childregs = *regs; in copy_thread()
157 childregs in copy_thread()
[all...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dprocess.c150 struct pt_regs *childregs, *regs = current_pt_regs(); in copy_thread() local
155 childregs = (struct pt_regs *) childksp - 1; in copy_thread()
157 childksp = (unsigned long) childregs; in copy_thread()
170 memset(childregs, 0, sizeof(struct pt_regs)); 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()
180 childregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/riscv/kernel/
H A Dprocess.c112 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
119 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
120 childregs->gp = gp_in_global; in copy_thread()
122 childregs->status = SR_PP | SR_PIE; in copy_thread()
128 *childregs = *(current_pt_regs()); in copy_thread()
130 childregs->sp = usp; in copy_thread()
132 childregs->tp = tls; in copy_thread()
133 childregs->a0 = 0; /* Return value of fork() */ in copy_thread()
136 p->thread.sp = (unsigned long)childregs; /* kernel sp */ in copy_thread()
/kernel/linux/linux-5.10/arch/nios2/kernel/
H A Dprocess.c106 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
110 ((struct switch_stack *)childregs) - 1; in copy_thread()
119 childregs->estatus = STATUS_PIE; in copy_thread()
120 childregs->sp = (unsigned long) childstack; in copy_thread()
123 p->thread.kregs = childregs; in copy_thread()
128 *childregs = *regs; in copy_thread()
129 childregs->r2 = 0; /* Set the return value for the child. */ in copy_thread()
130 childregs->r7 = 0; in copy_thread()
135 p->thread.kregs = childregs; in copy_thread()
139 childregs in copy_thread()
[all...]
/kernel/linux/linux-6.6/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 in copy_thread()
[all...]
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dprocess.c181 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
188 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
189 childregs->gp = gp_in_global; in copy_thread()
191 childregs->status = SR_PP | SR_PIE; in copy_thread()
196 *childregs = *(current_pt_regs()); in copy_thread()
198 riscv_v_vstate_off(childregs); in copy_thread()
200 childregs->sp = usp; in copy_thread()
202 childregs->tp = tls; in copy_thread()
203 childregs->a0 = 0; /* Return value of fork() */ in copy_thread()
207 p->thread.sp = (unsigned long)childregs; /* kerne in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Dprocess_32.c279 struct pt_regs *childregs, *regs = current_pt_regs(); local
293 * p->thread_info new_stack childregs stack bottom
300 childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ);
310 p->thread.kregs = childregs;
319 childregs->u_regs[UREG_G1] = sp; /* function */
320 childregs->u_regs[UREG_G2] = arg;
321 psr = childregs->psr = get_psr();
327 childregs->u_regs[UREG_FP] = sp;
361 childregs->u_regs[UREG_FP] = (unsigned long)childstack;
366 childregs
[all...]
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Dprocess_32.c267 struct pt_regs *childregs, *regs = current_pt_regs(); local
281 * p->thread_info new_stack childregs stack bottom
288 childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ);
298 p->thread.kregs = childregs;
305 childregs->u_regs[UREG_G1] = (unsigned long) args->fn;
306 childregs->u_regs[UREG_G2] = (unsigned long) args->fn_arg;
307 psr = childregs->psr = get_psr();
313 childregs->u_regs[UREG_FP] = sp;
345 childregs->u_regs[UREG_FP] = (unsigned long)childstack;
350 childregs
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dprocess.c386 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
402 *childregs = *current_pt_regs(); in copy_thread()
403 childregs->regs[0] = 0; in copy_thread()
413 childregs->compat_sp = stack_start; in copy_thread()
415 childregs->sp = stack_start; in copy_thread()
425 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
426 childregs->pstate = PSR_MODE_EL1h; in copy_thread()
429 childregs->pstate |= PSR_UAO_BIT; in copy_thread()
434 childregs->pmr_save = GIC_PRIO_IRQON; in copy_thread()
440 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dprocess.c232 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() local
247 *childregs = *current_pt_regs(); in copy_thread()
248 childregs->ARM_r0 = 0; in copy_thread()
250 childregs->ARM_sp = stack_start; in copy_thread()
252 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
255 childregs->ARM_cpsr = SVC_MODE; in copy_thread()
258 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()

Completed in 9 milliseconds

12