Lines Matching refs:sp
10 static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) in kstack_valid() argument
15 if (sp & (16UL - 1)) in kstack_valid()
18 if (sp >= (base + sizeof(struct thread_info)) && in kstack_valid()
19 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
24 if (sp >= base && in kstack_valid()
25 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
28 if (sp >= base && in kstack_valid()
29 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) in kstack_valid()
66 void *orig_sp, *sp = hardirq_stack[smp_processor_id()]; in set_hardirq_stack() local
69 if (orig_sp < sp || in set_hardirq_stack()
70 orig_sp > (sp + THREAD_SIZE)) { in set_hardirq_stack()
71 sp += THREAD_SIZE - 192 - STACK_BIAS; in set_hardirq_stack()
72 __asm__ __volatile__("mov %0, %%sp" : : "r" (sp)); in set_hardirq_stack()