This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / um / sys-i386 / util / mk_thread.c
1 #include <stdio.h>
2 #include <kernel-offsets.h>
3
4 int main(int argc, char **argv)
5 {
6   printf("/*\n");
7   printf(" * Generated by mk_thread\n");
8   printf(" */\n");
9   printf("\n");
10   printf("#ifndef __UM_THREAD_H\n");
11   printf("#define __UM_THREAD_H\n");
12   printf("\n");
13   printf("#define TASK_DEBUGREGS(task) ((unsigned long *) "
14          "&(((char *) (task))[%d]))\n", TASK_DEBUGREGS);
15 #ifdef TASK_EXTERN_PID
16   printf("#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[%d]))\n",
17          TASK_EXTERN_PID);
18 #endif
19   printf("\n");
20   printf("#endif\n");
21   return(0);
22 }