]> Pileus Git - ~andy/linux/blob - include/asm-i386/current.h
Merge branch 'cell-merge' of master.kernel.org:/pub/scm/linux/kernel/git/arnd/cell-2.6
[~andy/linux] / include / asm-i386 / current.h
1 #ifndef _I386_CURRENT_H
2 #define _I386_CURRENT_H
3
4 #include <asm/pda.h>
5 #include <linux/compiler.h>
6
7 struct task_struct;
8
9 static __always_inline struct task_struct *get_current(void)
10 {
11         return read_pda(pcurrent);
12 }
13  
14 #define current get_current()
15
16 #endif /* !(_I386_CURRENT_H) */