summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/processor.h
diff options
context:
space:
mode:
authorAl Viro2006-01-12 10:06:03 +0100
committerLinus Torvalds2006-01-12 18:08:58 +0100
commit95ca0dc603ab58f3e4c5a1c23f675bd1f5b5fef3 (patch)
tree367ddcc3858b9c3e852ea2f6bafaffd43424c9e5 /include/asm-cris/processor.h
parent[PATCH] powerpc: task_stack_page() (diff)
downloadkernel-qcow2-linux-95ca0dc603ab58f3e4c5a1c23f675bd1f5b5fef3.tar.gz
kernel-qcow2-linux-95ca0dc603ab58f3e4c5a1c23f675bd1f5b5fef3.tar.xz
kernel-qcow2-linux-95ca0dc603ab58f3e4c5a1c23f675bd1f5b5fef3.zip
[PATCH] cris: task_pt_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 dce41009eeb0..961e2bceadbc 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)
{