blob: 3db6b58b505e14e2e95c026573af789ed8555168 [file] [log] [blame]
Al Viroecba97d2005-09-28 22:27:23 +01001#ifndef __TASK_H
2#define __TASK_H
3
Al Viro9e636452011-08-18 20:01:49 +01004#include <generated/asm-offsets.h>
Al Viroecba97d2005-09-28 22:27:23 +01005
Jeff Dike77bf4402007-10-16 01:26:58 -07006#define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
Al Viroecba97d2005-09-28 22:27:23 +01007#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
8
9#endif