Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_PARISC_CURRENT_H
3#define _ASM_PARISC_CURRENT_H
4
5#include <asm/special_insns.h>
6
7#ifndef __ASSEMBLY__
8struct task_struct;
9
10static __always_inline struct task_struct *get_current(void)
11{
12 return (struct task_struct *) mfctl(30);
13}
14
15#define current get_current()
16
17#endif /* __ASSEMBLY__ */
18
19#endif /* _ASM_PARISC_CURRENT_H */