X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-cris%2Fprocessor.h;h=568da1deceb908d9f89f341b810954b3958d1487;hb=913b83944b9e13c60ca4ef95cf262547ff6bf93b;hp=0dc218117bd83df881c93c51942e75d8a49e11a3;hpb=ddbf9ef385bfbef897210733abfb73cb9b94ecec;p=linux-2.6 diff --git a/include/asm-cris/processor.h b/include/asm-cris/processor.h index 0dc218117b..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,9 +44,10 @@ * 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) -extern inline void prepare_to_copy(struct task_struct *tsk) +static inline void prepare_to_copy(struct task_struct *tsk) { } @@ -58,7 +60,7 @@ unsigned long get_wchan(struct task_struct *p); extern unsigned long thread_saved_pc(struct task_struct *tsk); /* Free all resources held by a thread. */ -extern inline void release_thread(struct task_struct *dead_task) +static inline void release_thread(struct task_struct *dead_task) { /* Nothing needs to be done. */ }