Lines Matching refs:gregs
42 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local
52 err |= __get_user(regs->r1, &gregs[0]); in rt_restore_ucontext()
53 err |= __get_user(regs->r2, &gregs[1]); in rt_restore_ucontext()
54 err |= __get_user(regs->r3, &gregs[2]); in rt_restore_ucontext()
55 err |= __get_user(regs->r4, &gregs[3]); in rt_restore_ucontext()
56 err |= __get_user(regs->r5, &gregs[4]); in rt_restore_ucontext()
57 err |= __get_user(regs->r6, &gregs[5]); in rt_restore_ucontext()
58 err |= __get_user(regs->r7, &gregs[6]); in rt_restore_ucontext()
59 err |= __get_user(regs->r8, &gregs[7]); in rt_restore_ucontext()
60 err |= __get_user(regs->r9, &gregs[8]); in rt_restore_ucontext()
61 err |= __get_user(regs->r10, &gregs[9]); in rt_restore_ucontext()
62 err |= __get_user(regs->r11, &gregs[10]); in rt_restore_ucontext()
63 err |= __get_user(regs->r12, &gregs[11]); in rt_restore_ucontext()
64 err |= __get_user(regs->r13, &gregs[12]); in rt_restore_ucontext()
65 err |= __get_user(regs->r14, &gregs[13]); in rt_restore_ucontext()
66 err |= __get_user(regs->r15, &gregs[14]); in rt_restore_ucontext()
67 err |= __get_user(sw->r16, &gregs[15]); in rt_restore_ucontext()
68 err |= __get_user(sw->r17, &gregs[16]); in rt_restore_ucontext()
69 err |= __get_user(sw->r18, &gregs[17]); in rt_restore_ucontext()
70 err |= __get_user(sw->r19, &gregs[18]); in rt_restore_ucontext()
71 err |= __get_user(sw->r20, &gregs[19]); in rt_restore_ucontext()
72 err |= __get_user(sw->r21, &gregs[20]); in rt_restore_ucontext()
73 err |= __get_user(sw->r22, &gregs[21]); in rt_restore_ucontext()
74 err |= __get_user(sw->r23, &gregs[22]); in rt_restore_ucontext()
76 err |= __get_user(sw->fp, &gregs[24]); /* Verify, should this be in rt_restore_ucontext()
78 err |= __get_user(sw->gp, &gregs[25]); /* Verify, should this be in rt_restore_ucontext()
81 err |= __get_user(temp, &gregs[26]); /* Not really necessary no user in rt_restore_ucontext()
83 err |= __get_user(regs->ea, &gregs[27]); in rt_restore_ucontext()
85 err |= __get_user(regs->ra, &gregs[23]); in rt_restore_ucontext()
86 err |= __get_user(regs->sp, &gregs[28]); in rt_restore_ucontext()
131 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext() local
135 err |= __put_user(regs->r1, &gregs[0]); in rt_setup_ucontext()
136 err |= __put_user(regs->r2, &gregs[1]); in rt_setup_ucontext()
137 err |= __put_user(regs->r3, &gregs[2]); in rt_setup_ucontext()
138 err |= __put_user(regs->r4, &gregs[3]); in rt_setup_ucontext()
139 err |= __put_user(regs->r5, &gregs[4]); in rt_setup_ucontext()
140 err |= __put_user(regs->r6, &gregs[5]); in rt_setup_ucontext()
141 err |= __put_user(regs->r7, &gregs[6]); in rt_setup_ucontext()
142 err |= __put_user(regs->r8, &gregs[7]); in rt_setup_ucontext()
143 err |= __put_user(regs->r9, &gregs[8]); in rt_setup_ucontext()
144 err |= __put_user(regs->r10, &gregs[9]); in rt_setup_ucontext()
145 err |= __put_user(regs->r11, &gregs[10]); in rt_setup_ucontext()
146 err |= __put_user(regs->r12, &gregs[11]); in rt_setup_ucontext()
147 err |= __put_user(regs->r13, &gregs[12]); in rt_setup_ucontext()
148 err |= __put_user(regs->r14, &gregs[13]); in rt_setup_ucontext()
149 err |= __put_user(regs->r15, &gregs[14]); in rt_setup_ucontext()
150 err |= __put_user(sw->r16, &gregs[15]); in rt_setup_ucontext()
151 err |= __put_user(sw->r17, &gregs[16]); in rt_setup_ucontext()
152 err |= __put_user(sw->r18, &gregs[17]); in rt_setup_ucontext()
153 err |= __put_user(sw->r19, &gregs[18]); in rt_setup_ucontext()
154 err |= __put_user(sw->r20, &gregs[19]); in rt_setup_ucontext()
155 err |= __put_user(sw->r21, &gregs[20]); in rt_setup_ucontext()
156 err |= __put_user(sw->r22, &gregs[21]); in rt_setup_ucontext()
157 err |= __put_user(sw->r23, &gregs[22]); in rt_setup_ucontext()
158 err |= __put_user(regs->ra, &gregs[23]); in rt_setup_ucontext()
159 err |= __put_user(sw->fp, &gregs[24]); in rt_setup_ucontext()
160 err |= __put_user(sw->gp, &gregs[25]); in rt_setup_ucontext()
161 err |= __put_user(regs->ea, &gregs[27]); in rt_setup_ucontext()
162 err |= __put_user(regs->sp, &gregs[28]); in rt_setup_ucontext()