Merge tag 'arc-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[linux-2.6-block.git] / arch / arc / include / asm / current.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
080c3747
VG
2/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 *
080c3747
VG
5 * Vineetg: May 16th, 2008
6 * - Current macro is now implemented as "global register" r25
7 */
8
9#ifndef _ASM_ARC_CURRENT_H
10#define _ASM_ARC_CURRENT_H
11
080c3747
VG
12#ifndef __ASSEMBLY__
13
14#ifdef CONFIG_ARC_CURR_IN_REG
15
cfca4b5a 16register struct task_struct *curr_arc asm("gp");
080c3747
VG
17#define current (curr_arc)
18
19#else
20#include <asm-generic/current.h>
21#endif /* ! CONFIG_ARC_CURR_IN_REG */
22
23#endif /* ! __ASSEMBLY__ */
24
080c3747 25#endif /* _ASM_ARC_CURRENT_H */