summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/processor.h')
-rw-r--r--include/asm-cris/processor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-cris/processor.h b/include/asm-cris/processor.h
index dce41009eeb..961e2bceadb 100644
--- a/include/asm-cris/processor.h
+++ b/include/asm-cris/processor.h
@@ -45,7 +45,8 @@ struct task_struct;
* Dito but for the currently running task
*/
-#define current_regs() user_regs(current->thread_info)
+#define task_pt_regs(task) user_regs(task_thread_info(task))
+#define current_regs() task_pt_regs(current)
static inline void prepare_to_copy(struct task_struct *tsk)
{