Lines Matching refs:sp
27 static unsigned int user_getsp32(unsigned int sp, int is_first)
30 void __user *p = compat_ptr(sp);
54 static unsigned long user_getsp64(unsigned long sp, int is_first)
58 if (!access_ok(VERIFY_READ, (void __user *)sp, sizeof(stack_frame)))
61 if (__copy_from_user_inatomic(stack_frame, (void __user *)sp,
72 static unsigned long kernel_getsp(unsigned long sp, int is_first)
74 unsigned long *stack_frame = (unsigned long *)sp;
76 if (!validate_sp(sp, current, STACK_FRAME_OVERHEAD))
93 unsigned long sp = regs->gpr[1];
101 sp = kernel_getsp(sp, first_frame);
102 if (!sp)
110 sp = user_getsp64(sp, first_frame);
111 if (!sp)
121 sp = user_getsp32(sp, first_frame);
122 if (!sp)