aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/sysdep-i386/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/sysdep-i386/thread.h')
-rw-r--r--arch/um/include/sysdep-i386/thread.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/um/include/sysdep-i386/thread.h b/arch/um/include/sysdep-i386/thread.h
new file mode 100644
index 000000000000..e2bd6bae8b8a
--- /dev/null
+++ b/arch/um/include/sysdep-i386/thread.h
@@ -0,0 +1,11 @@
+#ifndef __UM_THREAD_H
+#define __UM_THREAD_H
+
+#include <kern_constants.h>
+
+#define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS]))
+#ifdef CONFIG_MODE_TT
+#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID]))
+#endif
+
+#endif