2005-04-17 00:20:36 +02:00
|
|
|
#ifndef _I386_CURRENT_H
|
|
|
|
#define _I386_CURRENT_H
|
|
|
|
|
2006-12-07 02:14:03 +01:00
|
|
|
#include <asm/pda.h>
|
|
|
|
#include <linux/compiler.h>
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
struct task_struct;
|
|
|
|
|
2006-12-07 02:14:03 +01:00
|
|
|
static __always_inline struct task_struct *get_current(void)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
2006-12-07 02:14:03 +01:00
|
|
|
return read_pda(pcurrent);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#define current get_current()
|
|
|
|
|
|
|
|
#endif /* !(_I386_CURRENT_H) */
|