X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-cris%2Fprocessor.h;h=568da1deceb908d9f89f341b810954b3958d1487;hb=c2a7dcad9f0d92d7a96e735abb8bec7b9c621536;hp=e8b2abb2ae599b6f11d9476af76a80927f967930;hpb=d9b5444eeb3a663ca4a625878b1421c9e9b18e8b;p=linux-2.6 diff --git a/include/asm-cris/processor.h b/include/asm-cris/processor.h index e8b2abb2ae..568da1dece 100644 --- a/include/asm-cris/processor.h +++ b/include/asm-cris/processor.h @@ -10,12 +10,13 @@ #ifndef __ASM_CRIS_PROCESSOR_H #define __ASM_CRIS_PROCESSOR_H -#include #include #include #include #include +struct task_struct; + /* This decides where the kernel will search for a free chunk of vm * space during mmap's. */ @@ -43,7 +44,8 @@ * 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) {