Lines Matching full:r1
178 swi r2, r1, PT_R2; /* Save SDA */ \
179 swi r3, r1, PT_R3; \
180 swi r4, r1, PT_R4; \
181 swi r5, r1, PT_R5; \
182 swi r6, r1, PT_R6; \
183 swi r7, r1, PT_R7; \
184 swi r8, r1, PT_R8; \
185 swi r9, r1, PT_R9; \
186 swi r10, r1, PT_R10; \
187 swi r11, r1, PT_R11; /* save clobbered regs after rval */\
188 swi r12, r1, PT_R12; \
189 swi r13, r1, PT_R13; /* Save SDA2 */ \
190 swi r14, r1, PT_PC; /* PC, before IRQ/trap */ \
191 swi r15, r1, PT_R15; /* Save LP */ \
192 swi r16, r1, PT_R16; \
193 swi r17, r1, PT_R17; \
194 swi r18, r1, PT_R18; /* Save asm scratch reg */ \
195 swi r19, r1, PT_R19; \
196 swi r20, r1, PT_R20; \
197 swi r21, r1, PT_R21; \
198 swi r22, r1, PT_R22; \
199 swi r23, r1, PT_R23; \
200 swi r24, r1, PT_R24; \
201 swi r25, r1, PT_R25; \
202 swi r26, r1, PT_R26; \
203 swi r27, r1, PT_R27; \
204 swi r28, r1, PT_R28; \
205 swi r29, r1, PT_R29; \
206 swi r30, r1, PT_R30; \
207 swi r31, r1, PT_R31; /* Save current task reg */ \
209 swi r11, r1, PT_MSR;
212 lwi r2, r1, PT_R2; /* restore SDA */ \
213 lwi r3, r1, PT_R3; \
214 lwi r4, r1, PT_R4; \
215 lwi r5, r1, PT_R5; \
216 lwi r6, r1, PT_R6; \
217 lwi r7, r1, PT_R7; \
218 lwi r8, r1, PT_R8; \
219 lwi r9, r1, PT_R9; \
220 lwi r10, r1, PT_R10; \
221 lwi r11, r1, PT_R11; /* restore clobbered regs after rval */\
222 lwi r12, r1, PT_R12; \
223 lwi r13, r1, PT_R13; /* restore SDA2 */ \
224 lwi r14, r1, PT_PC; /* RESTORE_LINK PC, before IRQ/trap */\
225 lwi r15, r1, PT_R15; /* restore LP */ \
226 lwi r16, r1, PT_R16; \
227 lwi r17, r1, PT_R17; \
228 lwi r18, r1, PT_R18; /* restore asm scratch reg */ \
229 lwi r19, r1, PT_R19; \
230 lwi r20, r1, PT_R20; \
231 lwi r21, r1, PT_R21; \
232 lwi r22, r1, PT_R22; \
233 lwi r23, r1, PT_R23; \
234 lwi r24, r1, PT_R24; \
235 lwi r25, r1, PT_R25; \
236 lwi r26, r1, PT_R26; \
237 lwi r27, r1, PT_R27; \
238 lwi r28, r1, PT_R28; \
239 lwi r29, r1, PT_R29; \
240 lwi r30, r1, PT_R30; \
241 lwi r31, r1, PT_R31; /* Restore cur task reg */
244 lwi r11, r1, PT_MSR; \
249 lwi r11, r1, PT_MSR; \
256 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); /* save stack */ \
258 mfs r1, rmsr; \
259 andi r1, r1, MSR_UMS; \
260 bnei r1, 1f; \
263 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); \
265 /* tophys(r1,r1); */ \
266 /* addik r1, r1, -PT_SIZE; */ \
267 addik r1, r1, CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE; \
270 swi r1, r1, PT_MODE; \
272 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */\
273 tophys(r1,r1); \
274 lwi r1, r1, TS_THREAD_INFO; /* get the thread info */ \
276 /* addik r1, r1, THREAD_SIZE; */ \
277 /* tophys(r1,r1); */ \
278 /* addik r1, r1, -PT_SIZE; */ \
279 addik r1, r1, THREAD_SIZE + CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE; \
282 swi r11, r1, PT_R1; /* Store user SP. */ \
283 swi r0, r1, PT_MODE; /* Was in user-mode. */ \
303 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)) /* save stack */
306 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */
307 tophys(r1,r1);
308 lwi r1, r1, TS_THREAD_INFO; /* get stack from task_struct */
310 addik r1, r1, THREAD_SIZE;
311 tophys(r1,r1);
313 addik r1, r1, -PT_SIZE; /* Make room on the stack. */
315 swi r0, r1, PT_R3
316 swi r0, r1, PT_R4
318 swi r0, r1, PT_MODE; /* Was in user-mode. */
320 swi r11, r1, PT_R1; /* Store user SP. */
324 swi r12, r1, PT_R0;
325 tovirt(r1,r1)
343 swi r3, r1, PT_R3
345 addik r5, r1, PT_R0
349 lwi r5, r1, PT_R5;
350 lwi r6, r1, PT_R6;
351 lwi r7, r1, PT_R7;
352 lwi r8, r1, PT_R8;
353 lwi r9, r1, PT_R9;
354 lwi r10, r1, PT_R10;
395 swi r3, r1, PT_R3
396 swi r4, r1, PT_R4
398 lwi r11, r1, PT_MODE;
410 addik r5, r1, PT_R0
429 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
439 tophys(r1,r1);
441 addik r1, r1, PT_SIZE /* Clean up stack space. */
442 lwi r1, r1, PT_R1 - PT_SIZE;/* Restore user stack pointer. */
448 tophys(r1,r1);
450 addik r1, r1, PT_SIZE /* Clean up stack space. */
451 tovirt(r1,r1);
482 addik r5, r1, 0; /* add user context as 1st arg */
493 swi r17, r1, PT_PC;
494 tovirt(r1,r1)
503 addik r5, r1, 0 /* parameter struct pt_regs * regs */
529 swi r17, r1, PT_PC;
530 tovirt(r1,r1)
536 addik r7, r1, 0 /* parameter struct pt_regs * regs */
559 swi r17, r1, PT_PC;
560 tovirt(r1,r1)
566 addik r5, r1, 0 /* parameter struct pt_regs * regs */
571 swi r17, r1, PT_PC;
572 tovirt(r1,r1)
578 addik r5, r1, 0 /* parameter struct pt_regs * regs */
582 lwi r11, r1, PT_MODE;
614 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
623 tophys(r1,r1);
626 addik r1, r1, PT_SIZE /* Clean up stack space. */
628 lwi r1, r1, PT_R1 - PT_SIZE; /* Restore user stack pointer. */
633 tophys(r1,r1);
635 addik r1, r1, PT_SIZE /* Clean up stack space. */
637 tovirt(r1,r1);
650 * The stack-pointer (r1) should have already been saved to the memory
656 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
658 mfs r1, rmsr
660 andi r1, r1, MSR_UMS
661 bnei r1, 1f
664 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
665 tophys(r1,r1); /* MS: I have in r1 physical address where stack is */
668 addik r1, r1, -PT_SIZE;
671 swi r1, r1, PT_MODE; /* 0 - user mode, 1 - kernel mode */
675 lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE));
676 tophys(r1,r1);
677 lwi r1, r1, TS_THREAD_INFO;
678 addik r1, r1, THREAD_SIZE;
679 tophys(r1,r1);
681 addik r1, r1, -PT_SIZE;
684 swi r0, r1, PT_MODE;
686 swi r11, r1, PT_R1;
690 tovirt(r1,r1)
693 addik r5, r1, 0;
697 lwi r11, r1, PT_MODE;
713 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
724 tophys(r1,r1);
726 addik r1, r1, PT_SIZE /* MS: Clean up stack space. */
727 lwi r1, r1, PT_R1 - PT_SIZE;
747 tophys(r1,r1)
749 addik r1, r1, PT_SIZE /* MS: Clean up stack space. */
750 tovirt(r1,r1);
762 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP))
764 mfs r1, rmsr
766 andi r1, r1, MSR_UMS
767 bnei r1, 1f
769 lwi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); /* Reload kernel stack-ptr*/
772 addik r1, r1, CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - PT_SIZE;
775 swi r0, r1, PT_R0; /* R0 must be saved too */
776 swi r14, r1, PT_R14 /* rewrite saved R14 value */
777 swi r16, r1, PT_PC; /* PC and r16 are the same */
780 swi r11, r1, PT_EAR;
782 swi r11, r1, PT_ESR;
784 swi r11, r1, PT_FSR;
787 * by PT_SIZE but we need to get correct R1 value */
788 addik r11, r1, CONFIG_KERNEL_START - CONFIG_KERNEL_BASE_ADDR + PT_SIZE;
789 swi r11, r1, PT_R1
791 tovirt(r1,r1)
793 addi r5, r1, 0 /* pass pt_reg address as the first arg */
803 1: lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */
804 tophys(r1,r1);
805 lwi r1, r1, TS_THREAD_INFO; /* get the thread info */
806 addik r1, r1, THREAD_SIZE; /* calculate kernel stack pointer */
807 tophys(r1,r1);
809 addik r1, r1, -PT_SIZE; /* Make room on the stack. */
811 swi r16, r1, PT_PC; /* Save LP */
812 swi r0, r1, PT_MODE; /* Was in user-mode. */
814 swi r11, r1, PT_R1; /* Store user SP. */
816 tovirt(r1,r1)
818 addik r5, r1, 0;
826 lwi r11, r1, PT_MODE;
845 addik r5, r1, 0; /* Arg 1: struct pt_regs *regs */
853 tophys(r1,r1);
856 addik r1, r1, PT_SIZE /* Clean up stack space */
857 lwi r1, r1, PT_R1 - PT_SIZE; /* Restore user stack pointer */
864 tophys(r1,r1);
867 lwi r14, r1, PT_R14;
868 lwi r16, r1, PT_PC;
869 addik r1, r1, PT_SIZE; /* MS: Clean up stack space */
870 tovirt(r1,r1);
884 swi r1, r11, CC_R1
949 lwi r1, r11, CC_R1