[PATCH] uml: cross-build support : mk_thread
mk_thread converted Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
22
arch/um/sys-i386/util/mk_thread.c
Normal file
22
arch/um/sys-i386/util/mk_thread.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <kernel-offsets.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
printf("/*\n");
|
||||
printf(" * Generated by mk_thread\n");
|
||||
printf(" */\n");
|
||||
printf("\n");
|
||||
printf("#ifndef __UM_THREAD_H\n");
|
||||
printf("#define __UM_THREAD_H\n");
|
||||
printf("\n");
|
||||
printf("#define TASK_DEBUGREGS(task) ((unsigned long *) "
|
||||
"&(((char *) (task))[%d]))\n", TASK_DEBUGREGS);
|
||||
#ifdef TASK_EXTERN_PID
|
||||
printf("#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[%d]))\n",
|
||||
TASK_EXTERN_PID);
|
||||
#endif
|
||||
printf("\n");
|
||||
printf("#endif\n");
|
||||
return(0);
|
||||
}
|
Reference in New Issue
Block a user