/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALPHA_STACKTRACE_H #define _ASM_ALPHA_STACKTRACE_H #include #include #include #include #include static __always_inline bool on_thread_stack(void) { unsigned long base = (unsigned long)current->stack; unsigned long sp = (unsigned long)current_stack_pointer; return !((base ^ sp) & ~(THREAD_SIZE - 1)); } #endif /* _ASM_ALPHA_STACKTRACE_H */