]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/cris/include/arch-v10/arch/thread_info.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / cris / include / arch-v10 / arch / thread_info.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _ASM_ARCH_THREAD_INFO_H
3#define _ASM_ARCH_THREAD_INFO_H
4
5/* how to get the thread information struct from C */
d9b5444e 6static inline struct thread_info *current_thread_info(void)
1da177e4
LT
7{
8 struct thread_info *ti;
9 __asm__("and.d $sp,%0; ":"=r" (ti) : "0" (~8191UL));
10 return ti;
11}
12
13#endif