Lines Matching refs:childregs
103 * +------------------------+ <- sp in childregs (= tos)
104 * | childregs |
115 * childregs.
122 struct pt_regs *childregs;
129 childregs = (struct pt_regs*)(tos - PT_USER_SIZE);
131 childregs = (struct pt_regs*)tos - 1;
133 *childregs = *regs;
135 /* Create a call4 dummy-frame: a0 = 0, a1 = childregs. */
136 *((int*)childregs - 3) = (unsigned long)childregs;
137 *((int*)childregs - 4) = 0;
139 childregs->areg[1] = tos;
140 childregs->areg[2] = 0;
143 p->thread.sp = (unsigned long)childregs;
146 int len = childregs->wmask & ~0xf;
147 childregs->areg[1] = usp;
148 memcpy(&childregs->areg[XCHAL_NUM_AREGS - len/4],
152 childregs->areg[2] = childregs->areg[6];
156 childregs->wmask = 1;