Linux Audio

Check our new training course

Loading...
v4.17
 
 1/*
 2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License version 2 as
 6 * published by the Free Software Foundation.
 7 *
 8 * Vineetg: May 16th, 2008
 9 *  - Current macro is now implemented as "global register" r25
10 */
11
12#ifndef _ASM_ARC_CURRENT_H
13#define _ASM_ARC_CURRENT_H
14
15#ifndef __ASSEMBLY__
16
17#ifdef CONFIG_ARC_CURR_IN_REG
18
19register struct task_struct *curr_arc asm("r25");
20#define current (curr_arc)
21
22#else
23#include <asm-generic/current.h>
24#endif /* ! CONFIG_ARC_CURR_IN_REG */
25
26#endif /* ! __ASSEMBLY__ */
27
28#endif /* _ASM_ARC_CURRENT_H */
v5.9
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
 
 
 
 
 4 *
 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
12#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
25#endif /* _ASM_ARC_CURRENT_H */