blob: 9b9bdd3e6538894c7733fa26cf27037b2189a83a [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Vineet Gupta080c3742013-02-11 19:52:57 +05302/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 *
Vineet Gupta080c3742013-02-11 19:52:57 +05305 * 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
Vineet Gupta080c3742013-02-11 19:52:57 +053012#ifndef __ASSEMBLY__
13
14#ifdef CONFIG_ARC_CURR_IN_REG
15
16register struct task_struct *curr_arc asm("r25");
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
Vineet Gupta080c3742013-02-11 19:52:57 +053025#endif /* _ASM_ARC_CURRENT_H */