Lines Matching refs:r1
180 swi r2, r1, PT_R2; /* Save SDA */ \
181 swi r3, r1, PT_R3; \
182 swi r4, r1, PT_R4; \
183 swi r5, r1, PT_R5; \
184 swi r6, r1, PT_R6; \
185 swi r7, r1, PT_R7; \
186 swi r8, r1, PT_R8; \
187 swi r9, r1, PT_R9; \
188 swi r10, r1, PT_R10; \
189 swi r11, r1, PT_R11; /* save clobbered regs after rval */\
190 swi r12, r1, PT_R12; \
191 swi r13, r1, PT_R13; /* Save SDA2 */ \
192 swi r14, r1, PT_PC; /* PC, before IRQ/trap */ \
193 swi r15, r1, PT_R15; /* Save LP */ \
194 swi r16, r1, PT_R16; \
195 swi r17, r1, PT_R17; \
196 swi r18, r1, PT_R18; /* Save asm scratch reg */ \
197 swi r19, r1, PT_R19; \
198 swi r20, r1, PT_R20; \
199 swi r21, r1, PT_R21; \
200 swi r22, r1, PT_R22; \
201 swi r23, r1, PT_R23; \
202 swi r24, r1, PT_R24; \
203 swi r25, r1, PT_R25; \
204 swi r26, r1, PT_R26; \
205 swi r27, r1, PT_R27; \
206 swi r28, r1, PT_R28; \
207 swi r29, r1, PT_R29; \
208 swi r30, r1, PT_R30; \
209 swi r31, r1, PT_R31; /* Save current task reg */ \
211 swi r11, r1, PT_MSR;
214 lwi r2, r1, PT_R2; /* restore SDA */ \
215 lwi r3, r1, PT_R3; \
216 lwi r4, r1, PT_R4; \
217 lwi r5, r1, PT_R5; \
218 lwi r6, r1, PT_R6; \
219 lwi r7, r1, PT_R7; \
220 lwi r8, r1, PT_R8; \
221 lwi r9, r1, PT_R9; \
222 lwi r10, r1, PT_R10; \
223 lwi r11, r1, PT_R11; /* restore clobbered regs after rval */\
224 lwi r12, r1, PT_R12; \
225 lwi r13, r1, PT_R13; /* restore SDA2 */ \
226 lwi r14, r1, PT_PC; /* RESTORE_LINK PC, before IRQ/trap */\
227 lwi r15, r1, PT_R15; /* restore LP */ \
228 lwi r16, r1, PT_R16; \
229 lwi r17, r1, PT_R17; \
230 lwi r18, r1, PT_R18; /* restore asm scratch reg */ \
231 lwi r19, r1, PT_R19; \
232 lwi r20, r1, PT_R20; \
233 lwi r21, r1, PT_R21; \
234 lwi r22, r1, PT_R22; \
235 lwi r23, r1, PT_R23; \
236 lwi r24, r1, PT_R24; \
237 lwi r25, r1, PT_R25; \
238 lwi r26, r1, PT_R26; \
239 lwi r27, r1, PT_R27; \
240 lwi r28, r1, PT_R28; \
241 lwi r29, r1, PT_R29; \
242 lwi r30, r1, PT_R30; \
243 lwi r31, r1, PT_R31; /* Restore cur task reg */
246 lwi r11, r1, PT_MSR; \
251 lwi r11, r1, PT_MSR; \
258 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); /* save stack */ \
260 mfs r1, rmsr; \
261 andi r1, r1, MSR_UMS; \
262 bnei r1, 1f; \
265 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); \
269 addik r1, r1, CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE; \
272 swi r1, r1, PT_MODE; \
274 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */\
275 tophys(r1,r1); \
276 lwi r1, r1, TS_THREAD_INFO; /* get the thread info */ \
281 addik r1, r1, THREAD_SIZE + CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE; \
284 swi r11, r1, PT_R1; /* Store user SP. */ \
285 swi r0, r1, PT_MODE; /* Was in user-mode. */ \
295 addik r1, r1, -PT_SIZE
308 addik r1, r1, PT_SIZE
313 addik r1, r1, -PT_SIZE
326 addik r1, r1, PT_SIZE
343 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)) /* save stack */
346 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */
347 tophys(r1,r1);
348 lwi r1, r1, TS_THREAD_INFO; /* get stack from task_struct */
350 addik r1, r1, THREAD_SIZE;
351 tophys(r1,r1);
353 addik r1, r1, -PT_SIZE; /* Make room on the stack. */
355 swi r0, r1, PT_R3
356 swi r0, r1, PT_R4
358 swi r0, r1, PT_MODE; /* Was in user-mode. */
360 swi r11, r1, PT_R1; /* Store user SP. */
364 swi r12, r1, PT_R0;
365 tovirt(r1,r1)
383 swi r3, r1, PT_R3
385 addik r5, r1, PT_R0
389 lwi r5, r1, PT_R5;
390 lwi r6, r1, PT_R6;
391 lwi r7, r1, PT_R7;
392 lwi r8, r1, PT_R8;
393 lwi r9, r1, PT_R9;
394 lwi r10, r1, PT_R10;
435 swi r3, r1, PT_R3
436 swi r4, r1, PT_R4
438 lwi r11, r1, PT_MODE;
450 addik r5, r1, PT_R0
469 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
479 tophys(r1,r1);
481 addik r1, r1, PT_SIZE /* Clean up stack space. */
482 lwi r1, r1, PT_R1 - PT_SIZE;/* Restore user stack pointer. */
488 tophys(r1,r1);
490 addik r1, r1, PT_SIZE /* Clean up stack space. */
491 tovirt(r1,r1);
522 addik r5, r1, 0; /* add user context as 1st arg */
533 swi r17, r1, PT_PC;
534 tovirt(r1,r1)
543 addik r5, r1, 0 /* parameter struct pt_regs * regs */
569 swi r17, r1, PT_PC;
570 tovirt(r1,r1)
576 addik r7, r1, 0 /* parameter struct pt_regs * regs */
599 swi r17, r1, PT_PC;
600 tovirt(r1,r1)
606 addik r5, r1, 0 /* parameter struct pt_regs * regs */
611 swi r17, r1, PT_PC;
612 tovirt(r1,r1)
618 addik r5, r1, 0 /* parameter struct pt_regs * regs */
622 lwi r11, r1, PT_MODE;
654 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
663 tophys(r1,r1);
666 addik r1, r1, PT_SIZE /* Clean up stack space. */
668 lwi r1, r1, PT_R1 - PT_SIZE; /* Restore user stack pointer. */
673 tophys(r1,r1);
675 addik r1, r1, PT_SIZE /* Clean up stack space. */
677 tovirt(r1,r1);
696 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
698 mfs r1, rmsr
700 andi r1, r1, MSR_UMS
701 bnei r1, 1f
704 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
705 tophys(r1,r1); /* MS: I have in r1 physical address where stack is */
708 addik r1, r1, -PT_SIZE;
711 swi r1, r1, PT_MODE; /* 0 - user mode, 1 - kernel mode */
715 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE));
716 tophys(r1,r1);
717 lwi r1, r1, TS_THREAD_INFO;
718 addik r1, r1, THREAD_SIZE;
719 tophys(r1,r1);
721 addik r1, r1, -PT_SIZE;
724 swi r0, r1, PT_MODE;
726 swi r11, r1, PT_R1;
730 tovirt(r1,r1)
733 addik r5, r1, 0;
737 lwi r11, r1, PT_MODE;
753 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
764 tophys(r1,r1);
766 addik r1, r1, PT_SIZE /* MS: Clean up stack space. */
767 lwi r1, r1, PT_R1 - PT_SIZE;
787 tophys(r1,r1)
789 addik r1, r1, PT_SIZE /* MS: Clean up stack space. */
790 tovirt(r1,r1);
805 lwi r1, r0, xmb_manager_stackpointer
808 lwi r2, r1, PT_MSR
813 lwi r2, r1, PT_PID
816 lwi r2, r1, PT_TLBI
819 lwi r2, r1, PT_ZPR
823 lwi r2, r1, PT_FSR
832 add r6, r6, r1
833 add r7, r7, r1
856 lwi r14, r1, PT_R14
857 lwi r16, r1, PT_PC
858 addik r1, r1, PT_SIZE + 36
873 addik r1, r1, -PT_SIZE - 36
874 swi r1, r0, xmb_manager_stackpointer
876 swi r14, r1, PT_R14 /* rewrite saved R14 value */
877 swi r16, r1, PT_PC; /* PC and r16 are the same */
891 swi r2, r1, PT_PID
894 swi r2, r1, PT_TLBI
897 swi r2, r1, PT_ZPR
901 swi r2, r1, PT_FSR
904 swi r2, r1, PT_MSR
911 add r6, r6, r1
912 add r7, r7, r1
956 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
958 mfs r1, rmsr
960 andi r1, r1, MSR_UMS
961 bnei r1, 1f
963 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); /* Reload kernel stack-ptr*/
966 addik r1, r1, CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE;
969 swi r0, r1, PT_R0; /* R0 must be saved too */
970 swi r14, r1, PT_R14 /* rewrite saved R14 value */
971 swi r16, r1, PT_PC; /* PC and r16 are the same */
974 swi r11, r1, PT_EAR;
976 swi r11, r1, PT_ESR;
978 swi r11, r1, PT_FSR;
982 addik r11, r1, CONFIG_KERNEL_START - CONFIG_KERNEL_BASE_ADDR + PT_SIZE;
983 swi r11, r1, PT_R1
985 tovirt(r1,r1)
987 addi r5, r1, 0 /* pass pt_reg address as the first arg */
997 1: lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */
998 tophys(r1,r1);
999 lwi r1, r1, TS_THREAD_INFO; /* get the thread info */
1000 addik r1, r1, THREAD_SIZE; /* calculate kernel stack pointer */
1001 tophys(r1,r1);
1003 addik r1, r1, -PT_SIZE; /* Make room on the stack. */
1005 swi r16, r1, PT_PC; /* Save LP */
1006 swi r0, r1, PT_MODE; /* Was in user-mode. */
1008 swi r11, r1, PT_R1; /* Store user SP. */
1010 tovirt(r1,r1)
1012 addik r5, r1, 0;
1020 lwi r11, r1, PT_MODE;
1039 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
1047 tophys(r1,r1);
1050 addik r1, r1, PT_SIZE /* Clean up stack space */
1051 lwi r1, r1, PT_R1 - PT_SIZE; /* Restore user stack pointer */
1058 tophys(r1,r1);
1061 lwi r14, r1, PT_R14;
1062 lwi r16, r1, PT_PC;
1063 addik r1, r1, PT_SIZE; /* MS: Clean up stack space */
1064 tovirt(r1,r1);
1078 swi r1, r11, CC_R1
1143 lwi r1, r11, CC_R1
1161 addik r1, r1, -PT_SIZE
1185 addik r1, r1, PT_SIZE