Lines Matching refs:r21

347 	mtspr	SPRN_SPRG1,r21;         /* We need r21, move it to SPRG1   */\
349 mfspr r21,SPRN_SPRG2; /* Exception stack to use */\
350 cmpwi cr0,r21,0; /* From user mode or RTAS? */\
352 mr r21, r1; /* Move vka in r1 to r21 */\
353 subi r21,r21,INT_FRAME_SIZE; /* Allocate an exception frame */\
354 1: stw r20,_CCR(r21); /* Save CR on the stack */\
355 stw r22,GPR22(r21); /* Save r22 on the stack */\
356 stw r23,GPR23(r21); /* r23 Save on the stack */\
358 stw r20,GPR20(r21); /* Save r20 on the stack */\
360 stw r22,GPR21(r21); /* Save r21 on the stack */\
362 stw r20,_LINK(r21); /* Save LR on the stack */\
364 stw r22,_CTR(r21); /* Save CTR on the stack */\
366 stw r20,_XER(r21); /* Save XER on the stack */
369 stw r0,GPR0(r21); /* Save r0 on the stack */\
370 stw r1,GPR1(r21); /* Save r1 on the stack */\
371 stw r2,GPR2(r21); /* Save r2 on the stack */\
372 stw r1,0(r21); \
373 mr r1,r21; /* Set-up new kernel stack pointer */\
374 SAVE_4GPRS(3, r21); /* Save r3 through r6 on the stack */\
375 SAVE_GPR(7, r21); /* Save r7 on the stack */
440 stw r5,_ESR(r21)
449 mtspr SPRG1, r21
453 mfcr r21
454 mtspr SPRG7W, r21
471 andis. r21, r20, 0x8000
473 lis r21, swapper_pg_dir@h
474 ori r21, r21, swapper_pg_dir@l
485 mfspr r21,SPRG3
486 lwz r21,PGDIR(r21)
502 lwzx r21, r22, r21 /* Get pgd/pmd entry */
503 rlwinm. r22, r21, 0, 0, 20 /* Extract pt base address */
507 lwz r21, 4(r22) /* Get pte entry */
509 andi. r23, r21, _PAGE_RW /* Is it writeable? */
514 ori r21, r21, _PAGE_DIRTY|_PAGE_ACCESSED|_PAGE_HWWRITE
515 stw r21, 4(r22) /* Update Linux page table */
519 andi. r21,r21,0xffff /* Clear MS 16 bits */
521 ori r21,r21, 0x0100 /* Set G */
523 rlwimi r21,r23,0,26,31 /* Insert static perms */
527 and r21,r21,r23 /* Clear U0-U3 */
532 tlbwe r21, r24, PPC44x_TLB_ATTRIB /* Write ATTRIB */
536 mfspr r21, SPRG7R
537 mtcr r21
542 mfspr r21, SPRG1
551 mfspr r21, SPRG7R
552 mtcr r21
557 mfspr r21, SPRG1
565 stw r5,_ESR(r21)
591 stw r4,_DEAR(r21)
602 stw r4,_ESR(r21)
615 stw r3,ORIG_GPR3(r21)
649 mtspr SPRG1, r21
653 mfcr r21
654 mtspr SPRG7W, r21
660 andis. r21, r20, 0x8000
662 lis r21, swapper_pg_dir@h
663 ori r21, r21, swapper_pg_dir@l
674 mfspr r21,SPRG3
675 lwz r21,PGDIR(r21)
685 lwzx r21, r22, r21 /* Get pgd/pmd entry */
686 rlwinm. r22, r21, 0, 0, 20 /* Extract pt base address */
690 lwz r21, 4(r22) /* Get pte entry */
691 andi. r23, r21, _PAGE_PRESENT /* Is the page present? */
694 ori r21, r21, _PAGE_ACCESSED
695 stw r21, 4(r22)
704 mfspr r21, SPRG7R
705 mtcr r21
709 mfspr r21, SPRG1
721 mtspr SPRG1, r21
725 mfcr r21
726 mtspr SPRG7W, r21
732 andis. r21, r20, 0x8000
734 lis r21, swapper_pg_dir@h
735 ori r21, r21, swapper_pg_dir@l
746 mfspr r21,SPRG3
747 lwz r21,PGDIR(r21)
758 lwzx r21, r22, r21 /* Get pgd/pmd entry */
759 rlwinm. r22, r21, 0, 0, 20 /* Extract pt base address */
763 lwz r21, 4(r22) /* Get pte entry */
764 andi. r23, r21, _PAGE_PRESENT /* Is the page present? */
767 ori r21, r21, _PAGE_ACCESSED
768 stw r21, 4(r22)
777 mfspr r21, SPRG7R
778 mtcr r21
782 mfspr r21, SPRG1
806 mtspr SPRN_SPRG1,r21
810 mfspr r21,SPRN_CSRR1 /* MSR at the time of fault */
811 andi. r21,r21,MSR_PR
814 mfspr r21,SPRN_CSRR0 /* Faulting instruction address */
817 cmplw r21,r22
822 cmplw r21,r22
825 lis r21,DBSR_IC@h /* Remove the trap status */
826 mtspr SPRN_DBSR,r21
828 mfspr r21,SPRN_CSRR1
829 rlwinm r21,r21,0,23,21 /* clear MSR_DE */
830 mtspr SPRN_CSRR1, r21 /* restore MSR at rcfi without DE */
834 mfspr r21,SPRN_SPRG1
844 mfspr r21,SPRN_SPRG1
864 stw r5,_ESR(r21)
866 stw r4,_DEAR(r21)
900 lwz r21, 0(r23)
905 cmpw 0, r24, r21 /* reserve entries 62-63 for kernel */
916 lwz r21, 4(r22) /* Get LS word of PTE */
917 rlwimi r23, r21, 0, 0 , 19 /* Insert RPN */
936 andi. r21, r21, 0xffff /* Clear MS 16 bits */
937 andi. r22, r21, 0x0002 /* _PAGE_HWWRITE? */
941 8: ori r21, r21, 0x0100 /* Set G */
943 rlwimi r21, r23, 0, 26, 31 /* Insert static perms */
947 and r21,r21,r23 /* Clear U0-U3 */
948 tlbwe r21, r24, PPC44x_TLB_ATTRIB /* Write ATTRIB */
952 mfspr r21, SPRG7R
953 mtcr r21
957 mfspr r21, SPRG1
1011 stw r22,_NIP(r21) /* Save the faulting IP on the stack */
1012 stw r23,_MSR(r21) /* Save the exception MSR on stack */
1013 SAVE_4GPRS(8, r21) /* Save r8 through r11 on the stack */
1014 SAVE_8GPRS(12, r21) /* Save r12 through r19 on the stack */
1015 SAVE_8GPRS(24, r21) /* Save r24 through r31 on the stack */
1026 stw r24,TRAP(r21)
1030 stwcx. r22,r22,r21 /* Clear the reservation */
1032 stw r22,RESULT(r21)
1053 lwz r7,GPR7(r21)