Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5270 | serge | 1 | #ifndef _ASM_X86_CURRENT_H |
2 | #define _ASM_X86_CURRENT_H |
||
3 | |||
4 | #include |
||
5 | #include |
||
6 | |||
7 | #ifndef __ASSEMBLY__ |
||
8 | struct task_struct; |
||
9 | |||
10 | DECLARE_PER_CPU(struct task_struct *, current_task); |
||
11 | |||
12 | static __always_inline struct task_struct *get_current(void) |
||
13 | { |
||
14 | return this_cpu_read_stable(current_task); |
||
15 | } |
||
16 | |||
17 | #define current (void*)GetPid() |
||
18 | |||
19 | #endif /* __ASSEMBLY__ */ |
||
20 | |||
21 | #endif /* _ASM_X86_CURRENT_H */ |