Al Viro | ecba97d | 2005-09-28 22:27:23 +0100 | [diff] [blame] | 1 | #ifndef __TASK_H |
2 | #define __TASK_H | ||||
3 | |||||
4 | #include <kern_constants.h> | ||||
5 | |||||
Jeff Dike | 77bf440 | 2007-10-16 01:26:58 -0700 | [diff] [blame] | 6 | #define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS])) |
Al Viro | ecba97d | 2005-09-28 22:27:23 +0100 | [diff] [blame] | 7 | #define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID])) |
8 | |||||
9 | #endif |