ovl: split out ovl_get_indexdir() from ovl_fill_super()
[linux/fpc-iii.git] / arch / arc / include / asm / current.h
blobc2453ee628013700d899a8a47553c7d51a4e6cef
1 /*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
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.
8 * Vineetg: May 16th, 2008
9 * - Current macro is now implemented as "global register" r25
12 #ifndef _ASM_ARC_CURRENT_H
13 #define _ASM_ARC_CURRENT_H
15 #ifndef __ASSEMBLY__
17 #ifdef CONFIG_ARC_CURR_IN_REG
19 register struct task_struct *curr_arc asm("r25");
20 #define current (curr_arc)
22 #else
23 #include <asm-generic/current.h>
24 #endif /* ! CONFIG_ARC_CURR_IN_REG */
26 #endif /* ! __ASSEMBLY__ */
28 #endif /* _ASM_ARC_CURRENT_H */