]>
git.ipfire.org Git - people/arne_f/kernel.git/blob - arch/cris/include/arch-v10/arch/thread_info.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_ARCH_THREAD_INFO_H
3 #define _ASM_ARCH_THREAD_INFO_H
5 /* how to get the thread information struct from C */
6 static inline struct thread_info
*current_thread_info(void)
8 struct thread_info
*ti
;
9 __asm__("and.d $sp,%0; ":"=r" (ti
) : "0" (~8191UL));