childregs 246 arch/alpha/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 250 arch/alpha/kernel/process.c childstack = ((struct switch_stack *) childregs) - 1; childregs 261 arch/alpha/kernel/process.c childregs->hae = alpha_mv.hae_cache, childregs 275 arch/alpha/kernel/process.c *childregs = *regs; childregs 276 arch/alpha/kernel/process.c childregs->r0 = 0; childregs 277 arch/alpha/kernel/process.c childregs->r19 = 0; childregs 278 arch/alpha/kernel/process.c childregs->r20 = 1; /* OSF/1 has some strange fork() semantics. */ childregs 231 arch/arm/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 246 arch/arm/kernel/process.c *childregs = *current_pt_regs(); childregs 247 arch/arm/kernel/process.c childregs->ARM_r0 = 0; childregs 249 arch/arm/kernel/process.c childregs->ARM_sp = stack_start; childregs 251 arch/arm/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 254 arch/arm/kernel/process.c childregs->ARM_cpsr = SVC_MODE; childregs 257 arch/arm/kernel/process.c thread->cpu_context.sp = (unsigned long)childregs; childregs 366 arch/arm64/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 380 arch/arm64/kernel/process.c *childregs = *current_pt_regs(); childregs 381 arch/arm64/kernel/process.c childregs->regs[0] = 0; childregs 391 arch/arm64/kernel/process.c childregs->compat_sp = stack_start; childregs 393 arch/arm64/kernel/process.c childregs->sp = stack_start; childregs 403 arch/arm64/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 404 arch/arm64/kernel/process.c childregs->pstate = PSR_MODE_EL1h; childregs 407 arch/arm64/kernel/process.c childregs->pstate |= PSR_UAO_BIT; childregs 410 arch/arm64/kernel/process.c set_ssbs_bit(childregs); childregs 413 arch/arm64/kernel/process.c childregs->pmr_save = GIC_PRIO_IRQON; childregs 419 arch/arm64/kernel/process.c p->thread.cpu_context.sp = (unsigned long)childregs; childregs 111 arch/c6x/kernel/process.c struct pt_regs *childregs; childregs 113 arch/c6x/kernel/process.c childregs = task_pt_regs(p); childregs 117 arch/c6x/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 118 arch/c6x/kernel/process.c childregs->sp = (unsigned long)(childregs + 1); childregs 120 arch/c6x/kernel/process.c childregs->a0 = usp; /* function */ childregs 121 arch/c6x/kernel/process.c childregs->a1 = ustk_size; /* argument */ childregs 124 arch/c6x/kernel/process.c *childregs = *current_pt_regs(); childregs 126 arch/c6x/kernel/process.c childregs->sp = usp; childregs 131 arch/c6x/kernel/process.c p->thread.usp = childregs->sp; childregs 132 arch/c6x/kernel/process.c thread_saved_ksp(p) = (unsigned long)childregs - 8; childregs 142 arch/c6x/kernel/process.c childregs->dp = dp; childregs 44 arch/csky/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 50 arch/csky/kernel/process.c childstack = ((struct switch_stack *) childregs) - 1; childregs 57 arch/csky/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 61 arch/csky/kernel/process.c childregs->sr = mfcr("psr"); childregs 63 arch/csky/kernel/process.c *childregs = *(current_pt_regs()); childregs 65 arch/csky/kernel/process.c childregs->usp = usp; childregs 67 arch/csky/kernel/process.c task_thread_info(p)->tp_value = childregs->tls childregs 70 arch/csky/kernel/process.c childregs->a0 = 0; childregs 113 arch/h8300/kernel/process.c struct pt_regs *childregs; childregs 115 arch/h8300/kernel/process.c childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1; childregs 118 arch/h8300/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 119 arch/h8300/kernel/process.c childregs->retpc = (unsigned long) ret_from_kernel_thread; childregs 120 arch/h8300/kernel/process.c childregs->er4 = topstk; /* arg */ childregs 121 arch/h8300/kernel/process.c childregs->er5 = usp; /* fn */ childregs 123 arch/h8300/kernel/process.c *childregs = *current_pt_regs(); childregs 124 arch/h8300/kernel/process.c childregs->er0 = 0; childregs 125 arch/h8300/kernel/process.c childregs->retpc = (unsigned long) ret_from_fork; childregs 128 arch/h8300/kernel/process.c p->thread.ksp = (unsigned long)childregs; childregs 58 arch/hexagon/kernel/process.c struct pt_regs *childregs; childregs 61 arch/hexagon/kernel/process.c childregs = (struct pt_regs *) (((unsigned long) ti + THREAD_SIZE) - childregs 62 arch/hexagon/kernel/process.c sizeof(*childregs)); childregs 64 arch/hexagon/kernel/process.c ti->regs = childregs; childregs 72 arch/hexagon/kernel/process.c ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - childregs 77 arch/hexagon/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 81 arch/hexagon/kernel/process.c pt_set_kmode(childregs); childregs 84 arch/hexagon/kernel/process.c memcpy(childregs, current_pt_regs(), sizeof(*childregs)); childregs 88 arch/hexagon/kernel/process.c pt_set_rte_sp(childregs, usp); childregs 91 arch/hexagon/kernel/process.c childregs->r00 = 0; childregs 103 arch/hexagon/kernel/process.c childregs->ugp = childregs->r04; childregs 60 arch/microblaze/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 66 arch/microblaze/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 68 arch/microblaze/kernel/process.c ti->cpu_context.r1 = (unsigned long)childregs; childregs 71 arch/microblaze/kernel/process.c childregs->pt_mode = 1; childregs 72 arch/microblaze/kernel/process.c local_save_flags(childregs->msr); childregs 74 arch/microblaze/kernel/process.c ti->cpu_context.msr = childregs->msr & ~MSR_IE; childregs 79 arch/microblaze/kernel/process.c *childregs = *current_pt_regs(); childregs 81 arch/microblaze/kernel/process.c childregs->r1 = usp; childregs 84 arch/microblaze/kernel/process.c ti->cpu_context.r1 = (unsigned long)childregs; childregs 86 arch/microblaze/kernel/process.c ti->cpu_context.msr = (unsigned long)childregs->msr; childregs 88 arch/microblaze/kernel/process.c childregs->msr |= MSR_UMS; childregs 100 arch/microblaze/kernel/process.c childregs->msr &= ~MSR_EIP; childregs 101 arch/microblaze/kernel/process.c childregs->msr |= MSR_IE; childregs 102 arch/microblaze/kernel/process.c childregs->msr &= ~MSR_VM; childregs 103 arch/microblaze/kernel/process.c childregs->msr |= MSR_VMS; childregs 104 arch/microblaze/kernel/process.c childregs->msr |= MSR_EE; /* exceptions will be enabled*/ childregs 106 arch/microblaze/kernel/process.c ti->cpu_context.msr = (childregs->msr|MSR_VM); childregs 117 arch/microblaze/kernel/process.c childregs->r21 = childregs->r10; childregs 125 arch/mips/kernel/process.c struct pt_regs *childregs, *regs = current_pt_regs(); childregs 131 arch/mips/kernel/process.c childregs = (struct pt_regs *) childksp - 1; childregs 133 arch/mips/kernel/process.c childksp = (unsigned long) childregs; childregs 138 arch/mips/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 150 arch/mips/kernel/process.c childregs->cp0_status = status; childregs 155 arch/mips/kernel/process.c *childregs = *regs; childregs 156 arch/mips/kernel/process.c childregs->regs[7] = 0; /* Clear error flag */ childregs 157 arch/mips/kernel/process.c childregs->regs[2] = 0; /* Child gets zero as return value */ childregs 159 arch/mips/kernel/process.c childregs->regs[29] = usp; childregs 162 arch/mips/kernel/process.c p->thread.reg29 = (unsigned long) childregs; childregs 169 arch/mips/kernel/process.c childregs->cp0_status &= ~(ST0_CU2|ST0_CU1); childregs 155 arch/nds32/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 160 arch/nds32/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 166 arch/nds32/kernel/process.c *childregs = *current_pt_regs(); childregs 168 arch/nds32/kernel/process.c childregs->sp = stack_start; childregs 170 arch/nds32/kernel/process.c childregs->uregs[0] = 0; childregs 171 arch/nds32/kernel/process.c childregs->osp = 0; childregs 173 arch/nds32/kernel/process.c childregs->uregs[25] = childregs->uregs[3]; childregs 177 arch/nds32/kernel/process.c p->thread.cpu_context.sp = (unsigned long)childregs; childregs 196 arch/nds32/kernel/process.c childregs->lb = 0; childregs 197 arch/nds32/kernel/process.c childregs->le = 0; childregs 198 arch/nds32/kernel/process.c childregs->lc = 0; childregs 106 arch/nios2/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 110 arch/nios2/kernel/process.c ((struct switch_stack *)childregs) - 1; childregs 119 arch/nios2/kernel/process.c childregs->estatus = STATUS_PIE; childregs 120 arch/nios2/kernel/process.c childregs->sp = (unsigned long) childstack; childregs 123 arch/nios2/kernel/process.c p->thread.kregs = childregs; childregs 128 arch/nios2/kernel/process.c *childregs = *regs; childregs 129 arch/nios2/kernel/process.c childregs->r2 = 0; /* Set the return value for the child. */ childregs 130 arch/nios2/kernel/process.c childregs->r7 = 0; childregs 135 arch/nios2/kernel/process.c p->thread.kregs = childregs; childregs 139 arch/nios2/kernel/process.c childregs->sp = usp; childregs 1594 arch/powerpc/kernel/process.c struct pt_regs *childregs, *kregs; childregs 1605 arch/powerpc/kernel/process.c childregs = (struct pt_regs *) sp; childregs 1608 arch/powerpc/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 1609 arch/powerpc/kernel/process.c childregs->gpr[1] = sp + sizeof(struct pt_regs); childregs 1612 arch/powerpc/kernel/process.c childregs->gpr[14] = ppc_function_entry((void *)usp); childregs 1615 arch/powerpc/kernel/process.c childregs->softe = IRQS_ENABLED; childregs 1617 arch/powerpc/kernel/process.c childregs->gpr[15] = kthread_arg; childregs 1625 arch/powerpc/kernel/process.c *childregs = *regs; childregs 1627 arch/powerpc/kernel/process.c childregs->gpr[1] = usp; childregs 1628 arch/powerpc/kernel/process.c p->thread.regs = childregs; childregs 1629 arch/powerpc/kernel/process.c childregs->gpr[3] = 0; /* Result from fork() */ childregs 1633 arch/powerpc/kernel/process.c childregs->gpr[13] = tls; childregs 1636 arch/powerpc/kernel/process.c childregs->gpr[2] = tls; childregs 1641 arch/powerpc/kernel/process.c childregs->msr &= ~(MSR_FP|MSR_VEC|MSR_VSX); childregs 1677 arch/powerpc/kernel/process.c childregs->ppr = DEFAULT_PPR; childregs 105 arch/riscv/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 111 arch/riscv/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 112 arch/riscv/kernel/process.c childregs->gp = gp; childregs 113 arch/riscv/kernel/process.c childregs->sstatus = SR_SPP | SR_SPIE; /* Supervisor, irqs on */ childregs 119 arch/riscv/kernel/process.c *childregs = *(current_pt_regs()); childregs 121 arch/riscv/kernel/process.c childregs->sp = usp; childregs 123 arch/riscv/kernel/process.c childregs->tp = tls; childregs 124 arch/riscv/kernel/process.c childregs->a0 = 0; /* Return value of fork() */ childregs 127 arch/riscv/kernel/process.c p->thread.sp = (unsigned long)childregs; /* kernel sp */ childregs 88 arch/s390/kernel/process.c struct pt_regs childregs; childregs 91 arch/s390/kernel/process.c frame = container_of(task_pt_regs(p), struct fake_frame, childregs); childregs 119 arch/s390/kernel/process.c memset(&frame->childregs, 0, sizeof(struct pt_regs)); childregs 120 arch/s390/kernel/process.c frame->childregs.psw.mask = PSW_KERNEL_BITS | PSW_MASK_DAT | childregs 122 arch/s390/kernel/process.c frame->childregs.psw.addr = childregs 124 arch/s390/kernel/process.c frame->childregs.gprs[9] = new_stackp; /* function */ childregs 125 arch/s390/kernel/process.c frame->childregs.gprs[10] = arg; childregs 126 arch/s390/kernel/process.c frame->childregs.gprs[11] = (unsigned long) do_exit; childregs 127 arch/s390/kernel/process.c frame->childregs.orig_gpr2 = -1; childregs 131 arch/s390/kernel/process.c frame->childregs = *current_pt_regs(); childregs 132 arch/s390/kernel/process.c frame->childregs.gprs[2] = 0; /* child returns 0 on fork. */ childregs 133 arch/s390/kernel/process.c frame->childregs.flags = 0; childregs 135 arch/s390/kernel/process.c frame->childregs.gprs[15] = new_stackp; childregs 139 arch/s390/kernel/process.c frame->childregs.psw.mask &= ~PSW_MASK_RI; childregs 122 arch/sh/kernel/process_32.c struct pt_regs *childregs; childregs 138 arch/sh/kernel/process_32.c childregs = task_pt_regs(p); childregs 139 arch/sh/kernel/process_32.c p->thread.sp = (unsigned long) childregs; childregs 141 arch/sh/kernel/process_32.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 143 arch/sh/kernel/process_32.c childregs->regs[4] = arg; childregs 144 arch/sh/kernel/process_32.c childregs->regs[5] = usp; childregs 145 arch/sh/kernel/process_32.c childregs->sr = SR_MD; childregs 147 arch/sh/kernel/process_32.c childregs->sr |= SR_FD; childregs 154 arch/sh/kernel/process_32.c *childregs = *current_pt_regs(); childregs 157 arch/sh/kernel/process_32.c childregs->regs[15] = usp; childregs 161 arch/sh/kernel/process_32.c childregs->gbr = childregs->regs[0]; childregs 163 arch/sh/kernel/process_32.c childregs->regs[0] = 0; /* Set return value for child */ childregs 376 arch/sh/kernel/process_64.c struct pt_regs *childregs; childregs 389 arch/sh/kernel/process_64.c childregs = (struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1; childregs 390 arch/sh/kernel/process_64.c p->thread.sp = (unsigned long) childregs; childregs 393 arch/sh/kernel/process_64.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 394 arch/sh/kernel/process_64.c childregs->regs[2] = (unsigned long)arg; childregs 395 arch/sh/kernel/process_64.c childregs->regs[3] = (unsigned long)usp; childregs 396 arch/sh/kernel/process_64.c childregs->sr = (1 << 30); /* not user_mode */ childregs 397 arch/sh/kernel/process_64.c childregs->sr |= SR_FD; /* Invalidate FPU flag */ childregs 401 arch/sh/kernel/process_64.c *childregs = *current_pt_regs(); childregs 410 arch/sh/kernel/process_64.c childregs->regs[15] = neff_sign_extend(usp); childregs 411 arch/sh/kernel/process_64.c p->thread.uregs = childregs; childregs 413 arch/sh/kernel/process_64.c childregs->regs[9] = 0; /* Set return value for child */ childregs 414 arch/sh/kernel/process_64.c childregs->sr |= SR_FD; /* Invalidate FPU flag */ childregs 308 arch/sparc/kernel/process_32.c struct pt_regs *childregs, *regs = current_pt_regs(); childregs 329 arch/sparc/kernel/process_32.c childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ); childregs 339 arch/sparc/kernel/process_32.c p->thread.kregs = childregs; childregs 348 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_G1] = sp; /* function */ childregs 349 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_G2] = arg; childregs 350 arch/sparc/kernel/process_32.c psr = childregs->psr = get_psr(); childregs 356 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_FP] = sp; childregs 390 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_FP] = (unsigned long)childstack; childregs 395 arch/sparc/kernel/process_32.c childregs->psr &= ~PSR_EF; childregs 400 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_I0] = current->pid; childregs 401 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_I1] = 1; childregs 407 arch/sparc/kernel/process_32.c childregs->u_regs[UREG_G7] = regs->u_regs[UREG_I3]; childregs 227 arch/unicore32/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 230 arch/unicore32/kernel/process.c thread->cpu_context.sp = (unsigned long)childregs; childregs 235 arch/unicore32/kernel/process.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 238 arch/unicore32/kernel/process.c *childregs = *current_pt_regs(); childregs 239 arch/unicore32/kernel/process.c childregs->UCreg_00 = 0; childregs 241 arch/unicore32/kernel/process.c childregs->UCreg_sp = stack_start; childregs 244 arch/unicore32/kernel/process.c childregs->UCreg_16 = childregs->UCreg_03; childregs 118 arch/x86/kernel/process_32.c struct pt_regs *childregs = task_pt_regs(p); childregs 119 arch/x86/kernel/process_32.c struct fork_frame *fork_frame = container_of(childregs, struct fork_frame, regs); childregs 134 arch/x86/kernel/process_32.c p->thread.sp0 = (unsigned long) (childregs+1); childregs 139 arch/x86/kernel/process_32.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 146 arch/x86/kernel/process_32.c *childregs = *current_pt_regs(); childregs 147 arch/x86/kernel/process_32.c childregs->ax = 0; childregs 149 arch/x86/kernel/process_32.c childregs->sp = sp; childregs 378 arch/x86/kernel/process_64.c struct pt_regs *childregs; childregs 383 arch/x86/kernel/process_64.c childregs = task_pt_regs(p); childregs 384 arch/x86/kernel/process_64.c fork_frame = container_of(childregs, struct fork_frame, regs); childregs 402 arch/x86/kernel/process_64.c memset(childregs, 0, sizeof(struct pt_regs)); childregs 408 arch/x86/kernel/process_64.c *childregs = *current_pt_regs(); childregs 410 arch/x86/kernel/process_64.c childregs->ax = 0; childregs 412 arch/x86/kernel/process_64.c childregs->sp = sp; childregs 209 arch/xtensa/kernel/process.c struct pt_regs *childregs = task_pt_regs(p); childregs 216 arch/xtensa/kernel/process.c SPILL_SLOT(childregs, 1) = (unsigned long)childregs; childregs 217 arch/xtensa/kernel/process.c SPILL_SLOT(childregs, 0) = 0; childregs 219 arch/xtensa/kernel/process.c p->thread.sp = (unsigned long)childregs; childregs 233 arch/xtensa/kernel/process.c *childregs = *regs; childregs 234 arch/xtensa/kernel/process.c childregs->areg[1] = usp; childregs 235 arch/xtensa/kernel/process.c childregs->areg[2] = 0; childregs 252 arch/xtensa/kernel/process.c int len = childregs->wmask & ~0xf; childregs 259 arch/xtensa/kernel/process.c childregs->wmask = 1; childregs 260 arch/xtensa/kernel/process.c childregs->windowstart = 1; childregs 261 arch/xtensa/kernel/process.c childregs->windowbase = 0; childregs 263 arch/xtensa/kernel/process.c int len = childregs->wmask & ~0xf; childregs 264 arch/xtensa/kernel/process.c memcpy(&childregs->areg[XCHAL_NUM_AREGS - len/4], childregs 269 arch/xtensa/kernel/process.c childregs->threadptr = tls; childregs 277 arch/xtensa/kernel/process.c SPILL_SLOT(childregs, 3) = thread_fn_arg; childregs 278 arch/xtensa/kernel/process.c SPILL_SLOT(childregs, 2) = usp_thread_fn;