Lines Matching refs:stackptr
119 x86_64_validate_stackptr(vm_offset_t stackptr) in x86_64_validate_stackptr() argument
123 if (!stackptr || (stackptr & 0x7) || !x86_64_validate_raddr(stackptr)) { in x86_64_validate_stackptr()
129 if (!kvtophys(stackptr)) { in x86_64_validate_stackptr()
136 if (((PAGE_SIZE - (stackptr & PAGE_MASK)) < x86_64_RETURN_OFFSET) && in x86_64_validate_stackptr()
137 !kvtophys(stackptr + x86_64_RETURN_OFFSET)) { in x86_64_validate_stackptr()
165 vm_offset_t stackptr, stackptr_prev, raddr; local
169 __asm__ volatile ("movq %%rbp, %0" : "=m" (stackptr));
171 if (!x86_64_validate_stackptr(stackptr)) {
175 raddr = *((vm_offset_t *) (stackptr + x86_64_RETURN_OFFSET));
184 stackptr_prev = stackptr;
185 stackptr = *((vm_offset_t *) stackptr_prev);
187 if (!x86_64_validate_stackptr(stackptr)) {
191 if (stackptr < stackptr_prev) {
195 if ((stackptr - stackptr_prev) > SANE_x86_64_FRAME_SIZE) {
199 raddr = *((vm_offset_t *) (stackptr + x86_64_RETURN_OFFSET));