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

/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/kernel/
H A Dprocess.c76 struct pt_regs * childregs; local
86 childregs = (struct pt_regs *) childksp - 1;
87 *childregs = *regs;
88 childregs->regs[7] = 0; /* Clear error flag */
90 childregs->regs[2] = 0; /* Child gets zero as return value */
94 childregs->regs[2] = 0;
95 childregs->regs[3] = 1;
99 if (childregs->cp0_status & ST0_CU0) {
100 childregs->regs[28] = (unsigned long) p;
101 childregs
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips64/kernel/
H A Dprocess.c80 struct pt_regs *childregs; local
90 childregs = (struct pt_regs *) childksp - 1;
91 *childregs = *regs;
92 childregs->regs[7] = 0; /* Clear error flag */
93 childregs->regs[2] = 0; /* Child gets zero as return value */
96 if (childregs->cp0_status & ST0_CU0) {
97 childregs->regs[28] = (unsigned long) p;
98 childregs->regs[29] = childksp;
101 childregs->regs[29] = usp;
104 p->thread.reg29 = (unsigned long) childregs;
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/cris/kernel/
H A Dprocess.c228 struct pt_regs * childregs; local
235 childregs = user_regs(p);
237 *childregs = *regs; /* struct copy of pt_regs */
239 childregs->r10 = 0; /* child returns 0 after a fork/clone */
243 swstack = ((struct switch_stack *)childregs) - 1;
260 printk("copy_thread: new regs at 0x%p, as shown below:\n", childregs);
261 show_registers(childregs);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sh/kernel/
H A Dprocess.c202 struct pt_regs *childregs; local
216 childregs = ((struct pt_regs *)(THREAD_SIZE + (unsigned long) p)) - 1;
217 *childregs = *regs;
220 childregs->regs[15] = usp;
222 childregs->regs[15] = (unsigned long)p+2*PAGE_SIZE;
224 childregs->regs[0] = 0; /* Set return value for child */
225 childregs->sr |= SR_FD; /* Invalidate FPU flag */
227 p->thread.sp = (unsigned long) childregs;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc64/kernel/
H A Dprocess.c199 struct pt_regs * childregs, *kregs; local
203 childregs = ((struct pt_regs *)
206 *childregs = *regs;
207 childregs->gpr[3] = 0; /* Result from fork() */
208 p->thread.regs = childregs;
209 p->thread.ksp = (unsigned long) childregs - STACK_FRAME_OVERHEAD;
220 kregs->gpr[1] = (unsigned long)childregs - STACK_FRAME_OVERHEAD;
225 childregs->gpr[1] = (unsigned long)(childregs + 1);
226 *((unsigned long *) childregs
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/arm/kernel/
H A Dprocess.c303 struct pt_regs * childregs; local
308 childregs = ((struct pt_regs *)((unsigned long)p + 8192)) - 1;
309 *childregs = *regs;
310 childregs->ARM_r0 = 0;
311 childregs->ARM_sp = esp;
313 save = ((struct context_save_struct *)(childregs)) - 1;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/kernel/
H A Dprocess.c302 struct pt_regs *childregs, *kregs; local
309 childregs = (struct pt_regs *) sp;
310 *childregs = *regs;
311 if ((childregs->msr & MSR_PR) == 0) {
313 childregs->gpr[1] = sp + sizeof(struct pt_regs);
314 childregs->gpr[2] = (unsigned long) p;
317 p->thread.regs = childregs;
318 childregs->gpr[3] = 0; /* Result from fork() */
342 childregs->msr &= ~(MSR_FP | MSR_FE0 | MSR_FE1);
356 childregs
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc/kernel/
H A Dprocess.c472 struct pt_regs *childregs; local
494 childregs = ((struct pt_regs *) (((unsigned long)p) + stack_offset));
495 copy_regs(childregs, regs);
496 new_stack = (((struct reg_window *) childregs) - 1);
515 childregs->u_regs[UREG_FP] = (unsigned long) new_stack;
521 childregs->u_regs[UREG_G6] = (unsigned long) p;
523 p->thread.kregs = childregs;
524 childregs->u_regs[UREG_FP] = sp;
545 childregs->u_regs[UREG_FP] = (unsigned long)childstack;
550 childregs
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/kernel/
H A Dprocess.c310 struct pt_regs * childregs; local
317 childregs = (struct pt_regs *) (stack_offset + PAGE_SIZE + (long)p);
319 *childregs = *regs;
320 childregs->r0 = 0;
321 childregs->r19 = 0;
322 childregs->r20 = 1; /* OSF/1 has some strange fork() semantics. */
325 childstack = ((struct switch_stack *) childregs) - 1;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/m68k/kernel/
H A Dprocess.c210 struct pt_regs * childregs; local
215 childregs = (struct pt_regs *) ((unsigned long) p + stack_offset);
217 *childregs = *regs;
218 childregs->d0 = 0;
223 childstack = ((struct switch_stack *) childregs) - 1;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/kernel/
H A Dprocess.c439 struct pt_regs * childregs; local
442 childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p)) - 1;
444 *childregs = *regs;
446 childregs->rax = 0;
447 childregs->rsp = rsp;
449 childregs->rsp = (unsigned long)childregs;
452 p->thread.rsp = (unsigned long) childregs;
453 p->thread.rsp0 = (unsigned long) (childregs+1);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/ia32/
H A Dptrace32.c191 struct pt_regs *childregs; local
229 childregs = (struct pt_regs *)(child->thread.rsp0 - sizeof(struct pt_regs));
292 save_i387_ia32(child, (void *)(u64)data, childregs, 1);
306 ret |= __put_user(childregs->cs, &u->fcs);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390/kernel/
H A Dprocess.c167 struct pt_regs childregs; member in struct:stack_frame
172 memcpy(&frame->childregs,regs,sizeof(struct pt_regs));
173 frame->childregs.gprs[15] = new_stackp;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390x/kernel/
H A Dprocess.c164 struct pt_regs childregs; member in struct:stack_frame
169 frame->childregs = *regs;
170 frame->childregs.gprs[15] = new_stackp;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/i386/kernel/
H A Dprocess.c585 struct pt_regs * childregs; local
587 childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p)) - 1;
588 struct_cpy(childregs, regs);
589 childregs->eax = 0;
590 childregs->esp = esp;
592 p->thread.esp = (unsigned long) childregs;
593 p->thread.esp0 = (unsigned long) (childregs+1);

Completed in 185 milliseconds