]> nv-tegra.nvidia Code Review - linux-3.10.git/blob - arch/um/sys-x86_64/util/mk_thread.c
Auto merge with /home/aegl/GIT/linus
[linux-3.10.git] / arch / um / sys-x86_64 / 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 #ifdef TASK_EXTERN_PID
14   printf("#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[%d]))\n",
15          TASK_EXTERN_PID);
16 #endif
17   printf("\n");
18   printf("#endif\n");
19   return(0);
20 }