Lines Matching refs:childregs
160 * +------------------------+ <- sp in childregs (= tos)
161 * | childregs |
172 * childregs.
179 struct pt_regs *childregs;
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;
195 *((int*)childregs - 4) = 0;
197 childregs->areg[1] = tos;
198 childregs->areg[2] = 0;
201 p->thread.sp = (unsigned long)childregs;
205 int len = childregs->wmask & ~0xf;
206 childregs->areg[1] = usp;
207 memcpy(&childregs->areg[XCHAL_NUM_AREGS - len/4],
210 childregs->areg[2] = childregs->areg[6];
214 childregs->wmask = 1;