[PATCH] i386: Page-align the GDT
[linux-2.6-block.git] / include / asm-i386 / current.h
CommitLineData
1da177e4
LT
1#ifndef _I386_CURRENT_H
2#define _I386_CURRENT_H
3
ec7fcaab
JF
4#include <asm/pda.h>
5#include <linux/compiler.h>
1da177e4
LT
6
7struct task_struct;
8
ec7fcaab 9static __always_inline struct task_struct *get_current(void)
1da177e4 10{
ec7fcaab 11 return read_pda(pcurrent);
1da177e4
LT
12}
13
14#define current get_current()
15
16#endif /* !(_I386_CURRENT_H) */