Merge tag 'mips_5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
[sfrench/cifs-2.6.git] / arch / mips / include / asm / thread_info.h
index 0b17aaa9e012a40c733709feb818332574847c53..ecae7470faa4058403b259c9ea199267684e30db 100644 (file)
@@ -69,6 +69,10 @@ static inline struct thread_info *current_thread_info(void)
        return __current_thread_info;
 }
 
+#ifdef CONFIG_ARCH_HAS_CURRENT_STACK_POINTER
+register unsigned long current_stack_pointer __asm__("sp");
+#endif
+
 #endif /* !__ASSEMBLY__ */
 
 /* thread information allocation */