entry-common.h 315 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef ARCH_LOONGARCH_ENTRY_COMMON_H
  3. #define ARCH_LOONGARCH_ENTRY_COMMON_H
  4. #include <linux/sched.h>
  5. #include <linux/processor.h>
  6. static inline bool on_thread_stack(void)
  7. {
  8. return !(((unsigned long)(current->stack) ^ current_stack_pointer) & ~(THREAD_SIZE - 1));
  9. }
  10. #endif