Lines Matching refs:compat_reg

40 	compat_uint_t compat_reg;  in restore_sigcontext32()  local
50 err |= __get_user(compat_reg,&sc->sc_gr[regn]); in restore_sigcontext32()
51 regs->gr[regn] = compat_reg; in restore_sigcontext32()
54 regs->gr[regn] = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
56 regn, regs->gr[regn], compat_regt, compat_reg); in restore_sigcontext32()
65 err |= __get_user(compat_reg, &sc->sc_iaoq[0]); in restore_sigcontext32()
68 regs->iaoq[0] = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
71 &sc->sc_iaoq[0], compat_reg); in restore_sigcontext32()
73 err |= __get_user(compat_reg, &sc->sc_iaoq[1]); in restore_sigcontext32()
76 regs->iaoq[1] = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
79 &sc->sc_iaoq[1],compat_reg); in restore_sigcontext32()
83 err |= __get_user(compat_reg, &sc->sc_iasq[0]); in restore_sigcontext32()
86 regs->iasq[0] = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
89 err |= __get_user(compat_reg, &sc->sc_iasq[1]); in restore_sigcontext32()
92 regs->iasq[1] = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
97 err |= __get_user(compat_reg, &sc->sc_sar); in restore_sigcontext32()
100 regs->sar = ((u64)compat_regt << 32) | (u64)compat_reg; in restore_sigcontext32()
120 compat_uint_t compat_reg; in setup_sigcontext32() local
133 compat_reg = (compat_uint_t)(regs->gr[31]); in setup_sigcontext32()
135 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32()
137 &sc->sc_iaoq[0], compat_reg); in setup_sigcontext32()
140 compat_reg = (compat_uint_t)(regs->gr[31] >> 32); in setup_sigcontext32()
141 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32()
142 DBG(2,"setup_sigcontext32: upper half iaoq[0] = %#x\n", compat_reg); in setup_sigcontext32()
145 compat_reg = (compat_uint_t)(regs->gr[31]+4); in setup_sigcontext32()
146 err |= __put_user(compat_reg, &sc->sc_iaoq[1]); in setup_sigcontext32()
148 &sc->sc_iaoq[1], compat_reg); in setup_sigcontext32()
150 compat_reg = (compat_uint_t)((regs->gr[31]+4) >> 32); in setup_sigcontext32()
151 err |= __put_user(compat_reg, &rf->rf_iaoq[1]); in setup_sigcontext32()
152 DBG(2,"setup_sigcontext32: upper half iaoq[1] = %#x\n", compat_reg); in setup_sigcontext32()
155 compat_reg = (compat_uint_t)(regs->sr[3]); in setup_sigcontext32()
156 err |= __put_user(compat_reg, &sc->sc_iasq[0]); in setup_sigcontext32()
157 err |= __put_user(compat_reg, &sc->sc_iasq[1]); in setup_sigcontext32()
160 compat_reg = (compat_uint_t)(regs->sr[3] >> 32); in setup_sigcontext32()
161 err |= __put_user(compat_reg, &rf->rf_iasq[0]); in setup_sigcontext32()
162 err |= __put_user(compat_reg, &rf->rf_iasq[1]); in setup_sigcontext32()
164 DBG(2,"setup_sigcontext32: upper half iasq[0] = %#x\n", compat_reg); in setup_sigcontext32()
165 DBG(2,"setup_sigcontext32: upper half iasq[1] = %#x\n", compat_reg); in setup_sigcontext32()
171 compat_reg = (compat_uint_t)(regs->iaoq[0]); in setup_sigcontext32()
172 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32()
174 &sc->sc_iaoq[0], compat_reg); in setup_sigcontext32()
176 compat_reg = (compat_uint_t)(regs->iaoq[0] >> 32); in setup_sigcontext32()
177 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32()
178 DBG(2,"setup_sigcontext32: upper half iaoq[0] = %#x\n", compat_reg); in setup_sigcontext32()
180 compat_reg = (compat_uint_t)(regs->iaoq[1]); in setup_sigcontext32()
181 err |= __put_user(compat_reg, &sc->sc_iaoq[1]); in setup_sigcontext32()
183 &sc->sc_iaoq[1], compat_reg); in setup_sigcontext32()
185 compat_reg = (compat_uint_t)(regs->iaoq[1] >> 32); in setup_sigcontext32()
186 err |= __put_user(compat_reg, &rf->rf_iaoq[1]); in setup_sigcontext32()
187 DBG(2,"setup_sigcontext32: upper half iaoq[1] = %#x\n", compat_reg); in setup_sigcontext32()
190 compat_reg = (compat_uint_t)(regs->iasq[0]); in setup_sigcontext32()
191 err |= __put_user(compat_reg, &sc->sc_iasq[0]); in setup_sigcontext32()
193 &sc->sc_iasq[0], compat_reg); in setup_sigcontext32()
195 compat_reg = (compat_uint_t)(regs->iasq[0] >> 32); in setup_sigcontext32()
196 err |= __put_user(compat_reg, &rf->rf_iasq[0]); in setup_sigcontext32()
197 DBG(2,"setup_sigcontext32: upper half iasq[0] = %#x\n", compat_reg); in setup_sigcontext32()
200 compat_reg = (compat_uint_t)(regs->iasq[1]); in setup_sigcontext32()
201 err |= __put_user(compat_reg, &sc->sc_iasq[1]); in setup_sigcontext32()
203 &sc->sc_iasq[1], compat_reg); in setup_sigcontext32()
205 compat_reg = (compat_uint_t)(regs->iasq[1] >> 32); in setup_sigcontext32()
206 err |= __put_user(compat_reg, &rf->rf_iasq[1]); in setup_sigcontext32()
207 DBG(2,"setup_sigcontext32: upper half iasq[1] = %#x\n", compat_reg); in setup_sigcontext32()
220 compat_reg = (compat_uint_t)(regs->gr[regn]); in setup_sigcontext32()
221 err |= __put_user(compat_reg, &sc->sc_gr[regn]); in setup_sigcontext32()
228 compat_regb, compat_reg); in setup_sigcontext32()
238 compat_reg = (compat_uint_t)(regs->sar); in setup_sigcontext32()
239 err |= __put_user(compat_reg, &sc->sc_sar); in setup_sigcontext32()
240 DBG(2,"setup_sigcontext32: sar is %#x\n", compat_reg); in setup_sigcontext32()
242 compat_reg = (compat_uint_t)(regs->sar >> 32); in setup_sigcontext32()
243 err |= __put_user(compat_reg, &rf->rf_sar); in setup_sigcontext32()
244 DBG(2,"setup_sigcontext32: upper half sar = %#x\n", compat_reg); in setup_sigcontext32()