• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/um/sys-x86_64/

Lines Matching refs:to

87 int copy_sc_to_user_skas(struct sigcontext __user *to,
95 err |= __put_user(0, &to->gs);
96 err |= __put_user(0, &to->fs);
102 err |= PUTREG(regs, RDI, to, rdi);
103 err |= PUTREG(regs, RSI, to, rsi);
104 err |= PUTREG(regs, RBP, to, rbp);
106 * the pt_regs, because that's already been updated to point at the
109 err |= __put_user(sp, &to->rsp);
110 err |= PUTREG(regs, RBX, to, rbx);
111 err |= PUTREG(regs, RDX, to, rdx);
112 err |= PUTREG(regs, RCX, to, rcx);
113 err |= PUTREG(regs, RAX, to, rax);
114 err |= PUTREG(regs, R8, to, r8);
115 err |= PUTREG(regs, R9, to, r9);
116 err |= PUTREG(regs, R10, to, r10);
117 err |= PUTREG(regs, R11, to, r11);
118 err |= PUTREG(regs, R12, to, r12);
119 err |= PUTREG(regs, R13, to, r13);
120 err |= PUTREG(regs, R14, to, r14);
121 err |= PUTREG(regs, R15, to, r15);
122 err |= PUTREG(regs, CS, to, cs);
124 err |= __put_user(fi->cr2, &to->cr2);
125 err |= __put_user(fi->error_code, &to->err);
126 err |= __put_user(fi->trap_no, &to->trapno);
128 err |= PUTREG(regs, RIP, to, rip);
129 err |= PUTREG(regs, EFLAGS, to, eflags);
132 err |= __put_user(mask, &to->oldmask);
140 int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext __user *from,
148 to_fp = to->fpstate;
149 sigs = to->oldmask;
150 err = copy_from_user(to, from, sizeof(*to));
151 from_fp = to->fpstate;
152 to->fpstate = to_fp;
153 to->oldmask = sigs;
159 int copy_sc_to_user_tt(struct sigcontext __user *to, struct _fpstate __user *fp,
166 to_fp = (fp ? fp : (struct _fpstate __user *) (to + 1));
168 err = copy_to_user(to, from, sizeof(*to));
171 * to be restored, so we stick it in separately.
173 err |= copy_to_user(&SC_SP(to), &sp, sizeof(sp));
176 err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate));
184 static int copy_sc_from_user(struct pt_regs *to, void __user *from)
188 ret = CHOOSE_MODE(copy_sc_from_user_tt(UPT_SC(&to->regs), from,
190 copy_sc_from_user_skas(to, from));
194 static int copy_sc_to_user(struct sigcontext __user *to,
199 return(CHOOSE_MODE(copy_sc_to_user_tt(to, fp, UPT_SC(&from->regs),
201 copy_sc_to_user_skas(to, fp, from, mask, sp)));
240 /* Update SP now because the page fault handler refuses to extend
244 * When writing the sigcontext to the stack, we have to write the
245 * original value, so that's passed to copy_sc_to_user, which does
268 /* Set up to return from userspace. If provided, use a stub