-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Al Viro
authored and
Linus Torvalds
committed
May 5, 2005
1 parent
a31769e
commit 2b8b611
Showing
10 changed files
with
46 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
|
||
hostprogs-y := mk_sc mk_thread | ||
always := $(hostprogs-y) | ||
|
||
mk_thread-objs := mk_thread_kern.o mk_thread_user.o | ||
|
||
HOSTCFLAGS_mk_thread_kern.o := $(CFLAGS) $(CPPFLAGS) | ||
HOSTCFLAGS_mk_thread_user.o := $(USER_CFLAGS) | ||
HOSTCFLAGS_mk_sc.o := -I$(objtree)/arch/um | ||
HOSTCFLAGS_mk_thread.o := -I$(objtree)/arch/um |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#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"); | ||
#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); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.