Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / parisc / include / asm / current.h
blobdc7aea07c3f3826920e76dcbfb57efc69da31538
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_PARISC_CURRENT_H
3 #define _ASM_PARISC_CURRENT_H
5 #ifndef __ASSEMBLY__
6 struct task_struct;
8 static __always_inline struct task_struct *get_current(void)
10 struct task_struct *ts;
12 /* do not use mfctl() macro as it is marked volatile */
13 asm( "mfctl %%cr30,%0" : "=r" (ts) );
14 return ts;
17 #define current get_current()
19 #endif /* __ASSEMBLY__ */
21 #endif /* _ASM_PARISC_CURRENT_H */