• Home
  • Raw
  • Download

Lines Matching refs:ppr

824 ptrace_getregs (struct task_struct *child, struct pt_all_user_regs __user *ppr)  in ptrace_getregs()  argument
835 if (!access_ok(ppr, sizeof(struct pt_all_user_regs))) in ptrace_getregs()
845 if (((unsigned long) ppr & 0x7) != 0) { in ptrace_getregs()
846 dprintk("ptrace:unaligned register address %p\n", ppr); in ptrace_getregs()
861 retval |= __put_user(pt->cr_iip, &ppr->cr_iip); in ptrace_getregs()
862 retval |= __put_user(psr, &ppr->cr_ipsr); in ptrace_getregs()
866 retval |= __put_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_getregs()
867 retval |= __put_user(pt->ar_rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_getregs()
868 retval |= __put_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_getregs()
869 retval |= __put_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_getregs()
870 retval |= __put_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_getregs()
871 retval |= __put_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_getregs()
873 retval |= __put_user(ec, &ppr->ar[PT_AUR_EC]); in ptrace_getregs()
874 retval |= __put_user(lc, &ppr->ar[PT_AUR_LC]); in ptrace_getregs()
875 retval |= __put_user(rnat, &ppr->ar[PT_AUR_RNAT]); in ptrace_getregs()
876 retval |= __put_user(bsp, &ppr->ar[PT_AUR_BSP]); in ptrace_getregs()
877 retval |= __put_user(cfm, &ppr->cfm); in ptrace_getregs()
881 retval |= __copy_to_user(&ppr->gr[1], &pt->r1, sizeof(long)); in ptrace_getregs()
882 retval |= __copy_to_user(&ppr->gr[2], &pt->r2, sizeof(long) *2); in ptrace_getregs()
889 retval |= __put_user(val, &ppr->gr[i]); in ptrace_getregs()
894 retval |= __copy_to_user(&ppr->gr[8], &pt->r8, sizeof(long) * 4); in ptrace_getregs()
898 retval |= __copy_to_user(&ppr->gr[12], &pt->r12, sizeof(long) * 2); in ptrace_getregs()
899 retval |= __copy_to_user(&ppr->gr[14], &pt->r14, sizeof(long)); in ptrace_getregs()
900 retval |= __copy_to_user(&ppr->gr[15], &pt->r15, sizeof(long)); in ptrace_getregs()
904 retval |= __copy_to_user(&ppr->gr[16], &pt->r16, sizeof(long) * 16); in ptrace_getregs()
908 retval |= __put_user(pt->b0, &ppr->br[0]); in ptrace_getregs()
915 __put_user(val, &ppr->br[i]); in ptrace_getregs()
920 retval |= __put_user(pt->b6, &ppr->br[6]); in ptrace_getregs()
921 retval |= __put_user(pt->b7, &ppr->br[7]); in ptrace_getregs()
928 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs()
933 retval |= __copy_to_user(&ppr->fr[6], &pt->f6, in ptrace_getregs()
938 retval |= __copy_to_user(&ppr->fr[12], &sw->f12, in ptrace_getregs()
946 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs()
952 retval |= __copy_to_user(&ppr->fr[32], &child->thread.fph, in ptrace_getregs()
953 sizeof(ppr->fr[32]) * 96); in ptrace_getregs()
957 retval |= __put_user(pt->pr, &ppr->pr); in ptrace_getregs()
961 retval |= __put_user(nat_bits, &ppr->nat); in ptrace_getregs()
968 ptrace_setregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) in ptrace_setregs() argument
980 if (!access_ok(ppr, sizeof(struct pt_all_user_regs))) in ptrace_setregs()
990 if (((unsigned long) ppr & 0x7) != 0) { in ptrace_setregs()
991 dprintk("ptrace:unaligned register address %p\n", ppr); in ptrace_setregs()
997 retval |= __get_user(pt->cr_iip, &ppr->cr_iip); in ptrace_setregs()
998 retval |= __get_user(psr, &ppr->cr_ipsr); in ptrace_setregs()
1002 retval |= __get_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_setregs()
1003 retval |= __get_user(rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_setregs()
1004 retval |= __get_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_setregs()
1005 retval |= __get_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_setregs()
1006 retval |= __get_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_setregs()
1007 retval |= __get_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_setregs()
1009 retval |= __get_user(ec, &ppr->ar[PT_AUR_EC]); in ptrace_setregs()
1010 retval |= __get_user(lc, &ppr->ar[PT_AUR_LC]); in ptrace_setregs()
1011 retval |= __get_user(rnat, &ppr->ar[PT_AUR_RNAT]); in ptrace_setregs()
1012 retval |= __get_user(bsp, &ppr->ar[PT_AUR_BSP]); in ptrace_setregs()
1013 retval |= __get_user(cfm, &ppr->cfm); in ptrace_setregs()
1017 retval |= __copy_from_user(&pt->r1, &ppr->gr[1], sizeof(long)); in ptrace_setregs()
1018 retval |= __copy_from_user(&pt->r2, &ppr->gr[2], sizeof(long) * 2); in ptrace_setregs()
1023 retval |= __get_user(val, &ppr->gr[i]); in ptrace_setregs()
1031 retval |= __copy_from_user(&pt->r8, &ppr->gr[8], sizeof(long) * 4); in ptrace_setregs()
1035 retval |= __copy_from_user(&pt->r12, &ppr->gr[12], sizeof(long) * 2); in ptrace_setregs()
1036 retval |= __copy_from_user(&pt->r14, &ppr->gr[14], sizeof(long)); in ptrace_setregs()
1037 retval |= __copy_from_user(&pt->r15, &ppr->gr[15], sizeof(long)); in ptrace_setregs()
1041 retval |= __copy_from_user(&pt->r16, &ppr->gr[16], sizeof(long) * 16); in ptrace_setregs()
1045 retval |= __get_user(pt->b0, &ppr->br[0]); in ptrace_setregs()
1050 retval |= __get_user(val, &ppr->br[i]); in ptrace_setregs()
1056 retval |= __get_user(pt->b6, &ppr->br[6]); in ptrace_setregs()
1057 retval |= __get_user(pt->b7, &ppr->br[7]); in ptrace_setregs()
1062 retval |= __copy_from_user(&fpval, &ppr->fr[i], sizeof(fpval)); in ptrace_setregs()
1069 retval |= __copy_from_user(&pt->f6, &ppr->fr[6], in ptrace_setregs()
1070 sizeof(ppr->fr[6]) * 6); in ptrace_setregs()
1074 retval |= __copy_from_user(&sw->f12, &ppr->fr[12], in ptrace_setregs()
1075 sizeof(ppr->fr[12]) * 4); in ptrace_setregs()
1080 retval |= __copy_from_user(&fpval, &ppr->fr[i], in ptrace_setregs()
1089 retval |= __copy_from_user(&child->thread.fph, &ppr->fr[32], in ptrace_setregs()
1090 sizeof(ppr->fr[32]) * 96); in ptrace_setregs()
1094 retval |= __get_user(pt->pr, &ppr->pr); in ptrace_setregs()
1098 retval |= __get_user(nat_bits, &ppr->nat); in ptrace_setregs()