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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/score/kernel/
H A Dprocess.c93 struct pt_regs *childregs = task_pt_regs(p); local
98 *childregs = *regs;
99 childregs->regs[7] = 0; /* Clear error flag */
100 childregs->regs[4] = 0; /* Child gets zero as return value */
103 if (childregs->cp0_psr & 0x8) { /* test kernel fork or user fork */
104 childregs->regs[0] = usp; /* user fork */
106 childregs->regs[28] = (unsigned long) ti; /* kernel fork */
107 childregs->regs[0] = (unsigned long) childregs;
110 p->thread.reg0 = (unsigned long) childregs;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/xtensa/kernel/
H A Dprocess.c160 * +------------------------+ <- sp in childregs (= tos)
161 * | childregs |
172 * childregs.
179 struct pt_regs *childregs; local
187 childregs = (struct pt_regs*)(tos - PT_USER_SIZE);
189 childregs = (struct pt_regs*)tos - 1;
191 *childregs = *regs;
193 /* Create a call4 dummy-frame: a0 = 0, a1 = childregs. */
194 *((int*)childregs - 3) = (unsigned long)childregs;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/microblaze/kernel/
H A Dprocess.c126 struct pt_regs *childregs = task_pt_regs(p); local
129 *childregs = *regs;
131 childregs->r1 = usp;
133 childregs->r1 = ((unsigned long) ti) + THREAD_SIZE;
137 ti->cpu_context.r1 = (unsigned long)childregs;
138 ti->cpu_context.msr = (unsigned long)childregs->msr;
145 childregs->CURRENT_TASK = (unsigned long)p;
158 childregs->msr |= MSR_UMS;
161 ti->cpu_context.r1 = (unsigned long)childregs - STATE_SAVE_ARG_SPACE;
162 /* we should consider the fact that childregs i
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/frv/kernel/
H A Dprocess.c204 struct pt_regs *childregs0, *childregs, *regs0; local
209 childregs = childregs0;
220 childregs--;
221 *childregs = *regs;
222 childregs->sp = (unsigned long) childregs0;
223 childregs->next_frame = childregs0;
224 childregs->gr15 = (unsigned long) task_thread_info(p);
225 childregs->gr29 = (unsigned long) p;
230 p->thread.frame = childregs;
232 p->thread.sp = (unsigned long) childregs;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/cris/arch-v10/kernel/
H A Dprocess.c122 struct pt_regs * childregs; local
129 childregs = task_pt_regs(p);
131 *childregs = *regs; /* struct copy of pt_regs */
135 childregs->r10 = 0; /* child returns 0 after a fork/clone */
139 swstack = ((struct switch_stack *)childregs) - 1;
156 printk("copy_thread: new regs at 0x%p, as shown below:\n", childregs);
157 show_registers(childregs);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sh/kernel/
H A Dprocess_32.c175 struct pt_regs *childregs; local
189 childregs = task_pt_regs(p);
190 *childregs = *regs;
193 childregs->regs[15] = usp;
196 childregs->regs[15] = (unsigned long)childregs;
203 childregs->gbr = childregs->regs[0];
205 childregs->regs[0] = 0; /* Set return value for child */
207 p->thread.sp = (unsigned long) childregs;
[all...]
H A Dprocess_64.c407 struct pt_regs *childregs; local
419 childregs = (struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1;
421 *childregs = *regs;
430 childregs->regs[15] = neff_sign_extend(usp);
431 p->thread.uregs = childregs;
433 childregs->regs[15] =
438 childregs->regs[9] = 0; /* Set return value for child */
439 childregs->sr |= SR_FD; /* Invalidate FPU flag */
441 p->thread.sp = (unsigned long) childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/h8300/kernel/
H A Dprocess.c197 struct pt_regs * childregs; local
199 childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1;
201 *childregs = *regs;
202 childregs->retpc = (unsigned long) ret_from_fork;
203 childregs->er0 = 0;
206 p->thread.ksp = (unsigned long)childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/tile/kernel/
H A Dptrace.c41 struct pt_regs *childregs = task_pt_regs(task); local
42 childregs->regs[regno] = value;
43 childregs->flags |= PT_FLAGS_RESTORE_REGS;
49 struct pt_regs *childregs = task_pt_regs(task); local
50 return childregs->regs[regno];
H A Dprocess.c163 struct pt_regs *childregs; local
195 childregs = task_pt_regs(p);
196 *childregs = *regs;
197 childregs->regs[0] = 0; /* return value is zero */
198 childregs->sp = sp; /* override with new user stack pointer */
205 childregs->tp = regs->regs[4];
215 ksp = (unsigned long) childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/cris/arch-v32/kernel/
H A Dprocess.c138 struct pt_regs *childregs; local
146 childregs = task_pt_regs(p);
147 *childregs = *regs; /* Struct copy of pt_regs. */
149 childregs->r10 = 0; /* Child returns 0 after a fork/clone. */
159 swstack = ((struct switch_stack *) childregs) - 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/kernel/
H A Dprocess.c121 struct pt_regs *childregs; local
138 childregs = (struct pt_regs *) childksp - 1;
140 childksp = (unsigned long) childregs;
141 *childregs = *regs;
142 childregs->regs[7] = 0; /* Clear error flag */
144 childregs->regs[2] = 0; /* Child gets zero as return value */
146 if (childregs->cp0_status & ST0_CU0) {
147 childregs->regs[28] = (unsigned long) ti;
148 childregs->regs[29] = childksp;
151 childregs
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sparc/kernel/
H A Dprocess_32.c364 struct pt_regs *childregs; local
381 * p->thread_info new_stack childregs
391 childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ);
410 childregs->u_regs[UREG_FP] = (unsigned long) new_stack;
414 childregs->u_regs[UREG_G6] = (unsigned long) ti;
416 p->thread.kregs = childregs;
417 childregs->u_regs[UREG_FP] = sp;
440 childregs->u_regs[UREG_FP] = (unsigned long)childstack;
446 childregs->psr &= ~PSR_EF;
450 childregs
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/kernel/
H A Dprocess_32.c199 struct pt_regs *childregs; local
203 childregs = task_pt_regs(p);
204 *childregs = *regs;
205 childregs->ax = 0;
206 childregs->sp = sp;
208 p->thread.sp = (unsigned long) childregs;
209 p->thread.sp0 = (unsigned long) (childregs+1);
238 (struct user_desc __user *)childregs->si, 0);
H A Dprocess_64.c264 struct pt_regs *childregs; local
267 childregs = ((struct pt_regs *)
269 *childregs = *regs;
271 childregs->ax = 0;
273 childregs->sp = sp;
275 childregs->sp = (unsigned long)childregs;
277 p->thread.sp = (unsigned long) childregs;
278 p->thread.sp0 = (unsigned long) (childregs+1);
313 (struct user_desc __user *)childregs
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/avr32/kernel/
H A Dprocess.c340 struct pt_regs *childregs; local
342 childregs = ((struct pt_regs *)(THREAD_SIZE + (unsigned long)task_stack_page(p))) - 1;
343 *childregs = *regs;
346 childregs->sp = usp;
348 childregs->sp = (unsigned long)task_stack_page(p) + THREAD_SIZE;
350 childregs->r12 = 0; /* Set return value for child */
353 p->thread.cpu_context.ksp = (unsigned long)childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/alpha/kernel/
H A Dprocess.c279 struct pt_regs * childregs; local
286 childregs = (struct pt_regs *)
289 *childregs = *regs;
291 childregs->r0 = 0;
292 childregs->r19 = 0;
293 childregs->r20 = 1; /* OSF/1 has some strange fork() semantics. */
296 childstack = ((struct switch_stack *) childregs) - 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/s390/kernel/
H A Dprocess.c170 struct pt_regs childregs; member in struct:fake_frame
173 frame = container_of(task_pt_regs(p), struct fake_frame, childregs);
176 frame->childregs = *regs;
177 frame->childregs.gprs[2] = 0; /* child returns 0 on fork. */
178 frame->childregs.gprs[15] = new_stackp;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m68k/kernel/
H A Dprocess.c236 struct pt_regs * childregs; local
240 childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;
242 *childregs = *regs;
243 childregs->d0 = 0;
248 childstack = ((struct switch_stack *) childregs) - 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m32r/kernel/
H A Dprocess.c231 struct pt_regs *childregs = task_pt_regs(tsk); local
235 *childregs = *regs;
237 childregs->spu = spu;
238 childregs->r0 = 0; /* Child gets zero as return value */
240 tsk->thread.sp = (unsigned long)childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m68knommu/kernel/
H A Dprocess.c206 struct pt_regs * childregs; local
210 childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;
212 *childregs = *regs;
213 childregs->d0 = 0;
218 childstack = ((struct switch_stack *) childregs) - 1;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/kernel/
H A Dprocess.c338 struct pt_regs *childregs = task_pt_regs(p); local
340 *childregs = *regs;
341 childregs->ARM_r0 = 0;
342 childregs->ARM_sp = stack_start;
345 thread->cpu_context.sp = (unsigned long)childregs;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/kernel/
H A Dprocess.c680 struct pt_regs *childregs, *kregs; local
687 childregs = (struct pt_regs *) sp;
688 *childregs = *regs;
689 if ((childregs->msr & MSR_PR) == 0) {
691 childregs->gpr[1] = sp + sizeof(struct pt_regs);
693 childregs->gpr[2] = (unsigned long) p;
699 childregs->gpr[1] = usp;
700 p->thread.regs = childregs;
704 childregs->gpr[13] = childregs
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/blackfin/kernel/
H A Dprocess.c196 struct pt_regs *childregs; local
198 childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;
199 *childregs = *regs;
200 childregs->r0 = 0;
203 p->thread.ksp = (unsigned long)childregs;

Completed in 230 milliseconds