Lines Matching defs:sp
11 static inline bool kstack_valid(struct thread_info *tp, unsigned long sp)
16 if (sp & (16UL - 1))
19 if (sp >= (base + sizeof(struct thread_info)) &&
20 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
25 if (sp >= base &&
26 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
29 if (sp >= base &&
30 sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf)))
67 void *orig_sp, *sp = hardirq_stack[smp_processor_id()];
69 __asm__ __volatile__("mov %%sp, %0" : "=r" (orig_sp));
70 if (orig_sp < sp ||
71 orig_sp > (sp + THREAD_SIZE)) {
72 sp += THREAD_SIZE - 192 - STACK_BIAS;
73 __asm__ __volatile__("mov %0, %%sp" : : "r" (sp));
81 __asm__ __volatile__("mov %0, %%sp" : : "r" (orig_sp));