aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/task.h')
-rw-r--r--arch/um/include/task.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/include/task.h b/arch/um/include/task.h
new file mode 100644
index 000000000000..6375ba7203c9
--- /dev/null
+++ b/arch/um/include/task.h
@@ -0,0 +1,9 @@
1#ifndef __TASK_H
2#define __TASK_H
3
4#include <kern_constants.h>
5
6#define TASK_REGS(task) ((union uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
7#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
8
9#endif