diff options
Diffstat (limited to 'arch/um/include/shared/task.h')
-rw-r--r-- | arch/um/include/shared/task.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/include/shared/task.h b/arch/um/include/shared/task.h new file mode 100644 index 000000000000..3fe726b3cf48 --- /dev/null +++ b/arch/um/include/shared/task.h @@ -0,0 +1,9 @@ +#ifndef __TASK_H +#define __TASK_H + +#include <kern_constants.h> + +#define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS])) +#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID])) + +#endif |